티스토리 뷰
Error/Spring
[Spring & mybatis] Mapped Statements collection already contains value for
IT공부블로그 2019. 10. 1. 20:07728x90
반응형
구글에 검색하면 쉽게 해결법을 찾을수있는 에러
나같은 경우는
mapper를
<select id="MybatisDAO.selectTest" parameterType="java.util.Map" resultType="java.lang.Integer">
select COUNT(emp_seq) AS empCount FROM ${DB_NEOS}t_co_emp
</select>
위와 같이 테스트해봤는데
resultType="java.lang.Integer" 이부분 땜에 자꾸
Mapped Statements collection already contains value for 에러 발생
resultType="java.lang.Integer" => resultMap="egovMap" 으로 한번 변경해봤더니
문제없어짐
728x90
반응형
'Error > Spring' 카테고리의 다른 글
[Spring] JAVA – Value ‘0000-00-00’ can not be represented as java.sql.Timestamp (0) | 2020.05.14 |
---|---|
[Spring] 415 에러 (0) | 2019.12.12 |
[Spring] Input length must be multiple of 16 when decrypting with padded cipher (0) | 2019.09.18 |
[Spring] non null key required (0) | 2019.09.05 |
[Spring] No default constructor found; nested exception is java.lang.NoSuchMethodException (0) | 2019.09.05 |
댓글