1. 程式人生 > >tomcat釋出兩個專案報錯webAppKey重複設定

tomcat釋出兩個專案報錯webAppKey重複設定

兩個專案的web.xml中都有一個日誌監聽器配置

<listener>

<listener-class>

org.springframework.web.util.Log4jConfigListener

</listener-class>

 </listener>

這隻需要在web.xml中配置

<context-param>

<param-name>webAppRootKey</param-name>

<param-value>webName.root</param-value>

</context-param>

比如說我的專案名稱是Recommend,則配置為

<context-param>

<param-name>webAppRootKey</param-name>

<param-value>Recommend.root</param-value>

</context-param>