码迷,mamicode.com
首页 > 其他好文 > 详细

控制台不打印日志异常

时间:2015-12-02 16:23:46      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

  1. SLF4J: Class path contains multiple SLF4J bindings.
  2. SLF4J: Found binding in [jar:file:/E:/Maven/repo/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  3. SLF4J: Found binding in [jar:file:/E:/Maven/repo /qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  4. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  5. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
  6. log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).
  7. log4j:WARN Please initialize the log4j system properly.
技术分享
由图可以看到  两个jar文件中都有StaticLoggerBinder.class类,可以判断是jar包冲突,删除其中之一即可。





控制台不打印日志异常

标签:

原文地址:http://www.cnblogs.com/sunaowei/p/5013138.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!