SLF4J: Failed to load class “org.“

时间:2025-04-02 09:34:50
<dependencies> <!-- SLF4J依赖,编译时和运行时都需要 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.26</version> </dependency> <!-- Logback依赖,运行时需要 --> <dependency> <groupId></groupId> <artifactId>logback-core</artifactId> <version>1.2.3</version> <scope>runtime</scope> </dependency> <dependency> <groupId></groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> <scope>runtime</scope> </dependency> </dependencies>