最近写的代码中,用到了 SpringBoot 和 log4j 日志,由于SpringBoot 中有自带的日志系统,所以log4j.properties 无法控制 SpringBoot 中的日志信息,老是出现:
网上有一些参考:
http://stackoverflow.com/questions/21739578/how-to-disable-spring-logging-debug-messages
http://www.dutycode.com/spring_boot_log4j_shiyong.html
上面这些但是还是没解决啊,最后试了一下,这样解决的:
感觉上就是把: SpringBoot中真正实现日志的部分去掉就可以了...