美文网首页
Log4j2 could not find a logging

Log4j2 could not find a logging

作者: alonwang | 来源:发表于2018-01-08 11:22 被阅读1641次

错误信息:

Log4j2 could not find a logging implementation. Please add log4j-core to the classpath

解决办法:
pom把log4j-api也加进去

 <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.9.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.9.1</version>
        </dependency>

相关文章

网友评论

      本文标题:Log4j2 could not find a logging

      本文链接:https://www.haomeiwen.com/subject/nlavnxtx.html