log4j警告提示解决

2023-04-11 05:15:17   文档大全网     [ 字体: ] [ 阅读: ]

#文档大全网# 导语】以下是®文档大全网的小编为您整理的《log4j警告提示解决》,欢迎阅读!
警告,提示,解决,log4j

log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).

log4j:WARN Please initialize the log4j system properly.

将Struts或Hibernate等压缩文件解压,内有log4j.properties文件,将其拷贝到项目src文件或者放到\web-inf\classes文件夹

修改相应配置文件

<context-param>

<param-name>log4jConfigLocation</param-name>

<param-value>/WEB-INF/config/log4j.properties</param-value>

</context-param>

<listener>

<listener-class>

org.springframework.web.util.Log4jConfigListener

</listener-class>

</listener>

本文来源:https://www.wddqxz.cn/cb913cb2bceb19e8b8f6ba7e.html

相关推荐