스프링 프레임워크
log4j.xml 에러 디버깅 (The file cannot be validated as the XML definition. Create the DTD file or configure an XML catalog for this DTD.)
내맴이여
2021. 6. 8. 14:09
반응형
1. 시험환경
- 스프링 STS
2. 목적
- log4j.xml 파일 경고 문구 디버깅
The file cannot be validated as the XML definition.
Create the DTD file or configure an XML catalog for this DTD.
3. 적용
① Spring MVC 프로젝트만 생성하였는데, log4j.xml에서 빨간줄 경고가 발생하였다.
4. 결과
- 해결방법은 간단하다. DOCTYPE 태그를 아래와 같이 대체하였다.
<!DOCTYPE log4j:configuration SYSTEM
"http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
※ 내용이 도움 되셨다면 광고 클릭 한번 부탁드립니다.
반응형