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! 错误的解决
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
大意是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>版權聲明:本文為博主原創(chuàng)文章,未經(jīng)博主允許不得轉載。
原文地址:
https://www.cnblogs.com/poterliu/p/9258900.html
?
重啟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
轉載于:https://www.cnblogs.com/poterliu/p/9258900.html
總結
以上是生活随笔為你收集整理的Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 错误的解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP学习笔记八【数组】
- 下一篇: OOP组合和继续的优缺点