log4j:WARN No appenders could be found for logger (org.springframework.context.s

Spring 使用LOG4J 这个开源框架时输出如下信息:

log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).

log4j:WARN Please initialize the log4j system properly.

解决方案:

将log4j.properties文件放置于工程的/src/ 目录下即可

相关推荐