NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
SpringBoot 2.7.xxx
logback 1.3.xxx
实际上原因是logback-classic从v1.3.0中删除了org/slf 4j/impl/StaticLoggerBinder,而spring-boot 2.x只支持logback到v1.2.x(目前是1.2.12)。
以下是相关问题:https://github.com/spring-projects/spring-boot/issues/34708 https://github.com/spring-projects/spring-boot/issues/12649
建议降低logback的版本 到 1.2.x 或者升级springBoot版本到3.x