[error] Mapped Statements collection already contains value for ~

LEE YUJIN·2023년 9월 25일
0

원인

  1. mapper id 가 틀린 경우.
  2. Parameter와 bean의 field 명이 틀린 경우
  3. sql.xml 에서 정의된 namespace와 DAO에서 호출하는 namespace가 다를 경우
  4. mapper가 정의가 되어 있지 않거나 Spelling 이 틀린 경우
  5. mapper에 정의 된 namespace 명칭이 같은 Application 내에 중복 될 경우

해결

mapper id가 중복되는 것들이 있어서 삭제해주었다.

https://starlmh.tistory.com/entry/Mybatis-%EC%97%90%EB%9F%AC

profile
개발 공부노트

0개의 댓글