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即可

posted @ 2020-11-20 10:46  农名工进城  阅读(87)  评论(0编辑  收藏  举报