工程中将log4j.properties配置文件放在了 src/resources目录下,控制台打印如下内容,表明log4j配置文件没生效
log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
解决办法,直接将log4j.properties配置文件放在 src目录下面 就可以了
来源:https://www.cnblogs.com/west-iversion/p/12142889.html