반응형
Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/users/apache-tomcat-8.5.72/webapps/Board-0.0.1-SNAPSHOT/WEB-INF/lib/slf4j-log4j12-1.7.5.jar)
SpringBoot의 경우 내부에 이미 logback에 대한 의존성이 있기 때문에 생기는 충돌
- 해결
slf4j-log4j12-1.7.5 에 대한 의존성을 제외 후 war/jar 파일 만들어서 재구동.
반응형
'Programming > Spring' 카테고리의 다른 글
[Spring] jUnit Test 실행시 Could not detect default configuration classes for test class 오류 (0) | 2021.11.23 |
---|---|
[Spring] SpringBoot WebClient buffer size 설정 (0) | 2021.11.18 |
[Spring] RequestMapping value값 여러개 사용. (0) | 2021.11.01 |
[Spring] SpringBoot 에 jsp 파일 사용 시 application.properties 선언 (0) | 2021.10.29 |
[Spring] log4j vs slf4j (0) | 2021.10.29 |