일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 시큐리티 로그아웃
- JAVA11
- 로그인
- css
- StyleSheet
- gradle
- programmers
- 소스트리
- 스프링 부트
- input태그
- Spring boot
- security
- 시큐리티
- springboot
- 목록
- 시큐리티 로그인
- 리눅스
- sql
- javascript
- 싱글톤
- 시큐리티로그인
- codingtest
- html
- 코딩테스트
- Linux
- 프로그래머스
- java
- 2차원배열
- 반복문
- springSecurity
Archives
- Today
- Total
JAVAIARY
Logger cannot be resolved to a type 문제 본문
1. 문제 : log를 찍으려고 컨트롤러에 로그 설정을 해주는 데 오류발생
- import log4j를 해 주었음에도 불구하고 오류 발생
- 원인: logging관련 dependency 에 <scope>runtime</scope> 처리가 되어 있어 사용불가
- Maven의 scope (pom.xml)
- runtime : 런타임(프로젝트 실행)시 필요하지만 컴파일 시 필요하지 않을 경우 사용
- scope 지정해 주지 않을 경우 기본 compile로 지정됨
2. 처리 : <scope>compile</scope> 로 변경하거나 runtime 부분을 주석처리
3. 결과 : 정상 작동
'selfEdu > 극약처방 ) Error' 카테고리의 다른 글
DBeaver DB 안 보일 때 (0) | 2023.02.20 |
---|---|
The Tomcat server configuration at \Servers\mvc-config is missing 오류 (0) | 2022.12.26 |
org.springframework.beans.factory.UnsatisfiedDependencyException 오류 (0) | 2022.12.19 |
the method {method} of type {class} must override a superclass method 오류 (0) | 2022.12.19 |
mybatis INTERVAL 구문오류 해결 (0) | 2022.11.23 |