首页 新闻 会员 周边 捐助

Java使用Junit测试的时候,报slf4有多个依耐冲突,怎么解决呀?

0
[待解决问题]

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/maven-lib/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/maven-lib/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

么么虎的主页 么么虎 | 初学一级 | 园豆:199
提问于:2016-09-08 10:29
< >
分享
所有回答(1)
0

试试去掉slf4j-log4j12-1.7.6.jar 或 logback-classic-1.1.2.jar

一剑侵心 | 园豆:281 (菜鸟二级) | 2016-09-10 10:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册