且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取异常org.apache.logging.slf4j.SLF4JLoggerContext无法强制转换为org.apache.logging.log4j.core.LoggerContext

更新时间:2022-04-10 23:09:54


从类路径中删除jar以下它应该解决问题 -

Remove below jar's from class path and it should fix the issue -



log4j-to-slf4j-2.0.2.jar
log4j-to-slf4j-2.0.2-sources.jar
log4j-slf4j-impl-2.0.2.jar
log4j-slf4j-impl-2.0.2-sources.jar




下载
apache-log4j-2.0.2后,我能够复制并解决问题来自
http:/ /www.apache.org/dyn/closer.cgi/logging/log4j/2.0.2/apache-log4j-2.0.2-bin.zip