1. 程式人生 > >Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 錯誤的解決

Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 錯誤的解決

app log4j article val name 問題 art arch log4

大意是Log4jConfigListener在獲取webapp.root值時,被後一context的值替換掉了,所以要在各個項目的web.xml中配置不同的webAppRootKey值,隨即在其中一個web.xml中添加:

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>web.sample.root</param-value>
</context-param>

  

重啟tomcat,問題解決。

參考:

https://blog.csdn.net/paulluo0739/article/details/7402420

https://www.cnblogs.com/ShaolinRong/archive/2013/02/27/2935080.html

https://blog.csdn.net/hjm4702192/article/details/8659054

Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 錯誤的解決