java.lang.IllegalStateException: Web app root system property already set to different value: ‘webapp.root’ = XXX
tomcat或jetty内两个项目同时启动就报错,单个正常.
据查询因为Log4j中${webapp.root}变量冲突导致
解决办法为在web.xml中添加配置:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>项目名.root</param-value>
</context-param>