`
征途2010
  • 浏览: 243456 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

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>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics