일지
[Spring 오류]Filed to parse mapping resource
닉닉눅
2023. 10. 18. 17:38
728x90
반응형
웹을 복사하는 작업을 하고 톰캣을 올리니 아래 로그가 올라오면서 톰캣이 실행되지 않았습니다.
Filed to parse mapping resource: 'file [상세주소\XML파일이름.xml]'; nested exception is
org.apache.ibatis.builder.builderexception: error parsing mapper xml.
cause: java.lang.illegalargumentexception: xml fragments parsed from previous mappers
already contains value for 네임스페이스 이름.쿼리ID(ex:testdao.base-table)
원인 : 해당 XML파일의 중복되는 ID가 있거나 바뀐 내용이 컴파일되지 않았음
해결법
1. 중복되는 ID
로그에서 알려준 위치의 XML파일로 이동하여 중복된 ID를 변경한다.
2. 바뀐 내용이 컴파일되지 않았음
프로젝트를 클린 시켜 컴파일 되도록한다.
728x90
반응형