javaweb同一个项目打包两次放在同一个tomcat下
web.xml中配置:
<context-param> <param-name>webAppRootKey</param-name> <param-value>app1.root</param-value> </context-param>
<context-param> <param-name>webAppRootKey</param-name> <param-value>app2.root</param-value> </context-param>
修改webAppRootKey即可