在一个tomcat服务器下发布两个web项目,启动报错
Web app root system property already set to different value: 'webapp.root' = [/home/user/tomcat/webapps/project1/] instead of [/home/user/tomcat/webapps/project2/] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
配置项目2中web.xml 加入
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>project2.root</param-value>
</context-param>