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>