Bug--WARN Please initialize the log4j system properly.

log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).
log4j:WARN Please initialize the log4j system properly.

缺少log4j配置文件
在src下新建一个.properties文件并写入:

# Global logging configuration 开发时候建议使用 debug
log4j.rootLogger=DEBUG, stdout
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
posted @ 2020-04-04 21:24  两小无猜  阅读(160)  评论(0编辑  收藏  举报