danDevlog

java.lang.NoClassDefFoundError: Unable to find Log4j2 as default logging library. Please provide a logging library and configure a valid spyLogDelegator name in the properties file. 본문

오류 및 편의성 모음

java.lang.NoClassDefFoundError: Unable to find Log4j2 as default logging library. Please provide a logging library and configure a valid spyLogDelegator name in the properties file.

단데기이 2022. 5. 3. 16:23
728x90

Log4j2 라이브러리를 찾을수 없다 그말이다.

Log4j2는 api와 core로 나누어져있다

Log4j-api Log4j-core 메이븐을 추가하면 해결된다.

 

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

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

 

Comments