org.slf4j.impl.StaticLoggerBinder 找不到

3月 24, 2023 |

Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
spring-boot-starter-logging:2.*依赖的是org.slf4j:slf4j-api:jar:1.7.32版本,
slf4j-api 2.X版本更换了绑定方式, 所以要么升级spring 框架,要么将logback-classic降版本到1.2.X系列

参考

https://java2blog.com/slf4j-failed-to-load-class-org-slf4j-impl-staticloggerbinder/

Posted in: IT人生

Comments are closed.