错误:
解决办法:
1,在原有的包后注明不再使用slf4j-log4j12方法:
在pom文件中增加:
org.slf4j
slf4j-log4j12

删除:
<!--<groupId>org.slf4j</groupId>-->
<!--<artifactId>slf4j-log4j12</artifactId>-->
<!--<version>1.7.5</version>-->
<!--</dependency>-->
错误日志:Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/home/huser/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar). If you are using WebLogic you will need to add 'or

最低0.47元/天 解锁文章
20万+

被折叠的 条评论
为什么被折叠?



