티스토리 뷰
java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection
인삼추출물 2020. 3. 2. 15:16ERROR: org.zerock.exception.CommonExceptionAdvice - Exception......nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection (try using the full name including the namespace, or rename one of the entries)
### Cause: java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection (try using the full name including the namespace, or rename one of the entries)
ERROR: org.zerock.exception.CommonExceptionAdvice - {exception=org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection (try using the full name including the namespace, or rename one of the entries)
### Cause: java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection (try using the full name including the namespace, or rename one of the entries)}
발생원인 : 새로이 Mapper에 resultMap 추가하면서 나온 error
해결방법 :
말인 즉슨, Mapping할 대상인 resultMap ID가 중복이라는 것입니다.
<resultMap id="XX" type="org.example.domain.testVO"><resultMap/>
xml 맵퍼에 존재하는 resultMap 중복 ID를 수정해주시면 해결!
'트러블슈팅' 카테고리의 다른 글
[Spring]CustomUserDetailsService에서 Service 의존성 주입 (0) | 2020.10.28 |
---|---|
[Webpack]Dynamic Import시 Script Path 설정 (0) | 2020.08.13 |
T4CConnection Error (0) | 2020.06.05 |
JSONObject 순서 문제 (0) | 2020.04.10 |
JavaScript 비동기 처리 문제 (0) | 2020.03.09 |