Problem: slf4j: failed to load class “org. Slf4j. Impl. Staticloggerbinder” error occurs when creating Maven project with idea for unit test
solution: add dependency in pom.xml. Because it is in the test environment, the scope tag is test. If it is running in main, you can change test.
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
Read More:
- SLF4J:Failed to load class “org.slf4j.impl.StaticLoggerBinder”
- SLF4J: Class path contains multiple SLF4J bindings.
- @In slf4j log.info Compile error: cannot find symbol log
- In idea, @ slf4j is used to report an error, but log is not found
- Could not find artifact org.olap4j:olap4j:pom:0.9.7.309-JS-3 in alimaven
- Neo4j LOAD CSV Error: Query cannot conclude with LOAD CSV
- Eclipse cannot import org.apache.log4j .Logger
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- Unable to find or load master class org.codehaus.groovy.grails.cli.support
- Failed startup of context o.e.j.w WebAppContext@532aaf8a {/admin,file:/D:/Develop/activeM
- log4j:ERROR
- QuickFIX/J100% Java Open Source FIX Engine
- ERROR StatusLogger No log4j2 configuration file found.
- ERROR StatusLogger No Log4j 2 configuration file found
- When jar file is running: Failed to load Main-Class manifest attribute from ……Solution
- How to display the Chinese name and installation time of installed software in snmp4j walk Windows
- Java error: unable to find or load the main class
- In J2EE Tomcat webapps, there are only folder directories and no files
- Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()) error appears in the R language installation package
- Installing the image J plug-in