当前文章: 首页 >> 编程开发 >> JAVA >> ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the clas
聚划算
«   2019年11月   »
123
45678910
11121314151617
18192021222324
252627282930
云盾证书
网站分类
    海外云服务器CPS_轻量拓展全民云计算企业云服务器云盾证书
标签列表
最近发表

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the clas

广告位250x250

使用Eclise开发时出错错误:

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文件中的<dependencies>内添加log4j

		<!-- log4j -->
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.10.0</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-api</artifactId>
			<version>2.10.0</version>
		</dependency>


声明:本站原创文章,转载、复制、使用等请注明出处。
标题ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the clas
作者jues
地址: http://blog.jues.org.cn/post/error-statuslogger-log4j2-could-not-find-a-logging-implementation.-please-add-log4j-core-to-the-clas.html

发表评论:

Powered By Z-BlogPHP 1.5.2 Zero Powered By Z-BlogPHP © 2018 jues博客 Copyright Your WebSite.Some Rights Reserved.联系站长 Themes by jues