报错信息截图如下:
日志信息如下:
LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.SimpleLoggerFactory loaded from
file:/D:/Apache%20Software%20Foundation/LocalWarehouse/org/slf4j/slf4j-simple/1.7.30/slf4j-simple-1.7.30.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.SimpleLoggerFactory
通过日志信息得知两个jar包里面的方法产生了冲突
[jar:file:/D:/Apache%20Software%20Foundation/LocalWarehouse/org/slf4j/slf4j-simple/1.7.30/slf4j-simple-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[jar:file:/D:/Apache%20Software%20Foundation/LocalWarehouse/ch/qos/logback/logback-classic/