728x90
mybatis #springboot #join #resultMap #resultType #userDTO
-
mybatis 테이블 join시 에러공부/SpringBoot & Spring 2022. 6. 13. 10:59
MyBatis mapper 설정시 resultMap과 resultType값을 잘못 설정하게 되면 java.lang.IllegalArgumentException: Result Maps collection does not contain value for xxx 와 비슷한 에러가 발생 resultmap과 resultType을 잘 맞춰서 사용..! 나 같은 경우에는 resultmap에는 UserDTO로 써놓고 select id~ 부분에서 resultMap을 ~.domain.UserDTO로 써줘서 오류가 난 것이였다.! resultMap이랑 동일하게 UserDTO로 처리해주니 오류 수정