java.lang.IllegalArgumentException: XX is ambiguous in Result Maps collection
ERROR: 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를 수정해주시면 해결!