一个tomcat中配置多个应用的方法 在各个应用的web.xml中追加
<context-param> <param-name>webAppRootKey</param-name> <param-value>xxx.root</param-value></context-param>