出现 ERROR StatusLogger Log4j2 could not find a logging implementation.

控制台出现 :
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console…

在pom.xml文件添加

<dependency>
    <groupId>org.apache.logging.log4jgroupId>
    <artifactId>log4j-coreartifactId>
    <version>2.10.0version>
dependency>

<dependency>
    <groupId>org.apache.logging.log4jgroupId>
    <artifactId>log4j-apiartifactId>
    <version>2.10.0version>
dependency>

问题解决!

你可能感兴趣的:(错误积累,apache,java,jar)