小编Cur*_*s89的帖子

将 commons-logging 连接到 slf4j-api

想知道我应该包含的依赖项,以将 commons-logging 桥接到 slf4j-api。

通过添加以下内容,我的构建成功:

"org.apache.logging.log4j:log4j-api:2.12.1"
"org.apache.logging.log4j:log4j-core:2.12.1"
"org.apache.logging.log4j:log4j-1.2-api:2.12.1"
"org.slf4j:slf4j-api:${slf4j_version}"
"org.apache.logging.log4j:log4j-slf4j-impl:2.12.1"
"org.slf4j:slf4j-jcl:1.7.25"
Run Code Online (Sandbox Code Playgroud)

但无法启动我的服务:( Getting java.lang.ExceptionInInitializerError... 引起:org.springframework.beans.factory.CannotLoadBeanClassException

slf4j apache-commons-logging log4j2 slf4j-api

2
推荐指数
1
解决办法
1247
查看次数

标签 统计

apache-commons-logging ×1

log4j2 ×1

slf4j ×1

slf4j-api ×1