상세 컨텐츠

본문 제목

Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for 문제시...

소프트웨어/spring

by 야솔아빠 2014. 5. 16. 17:46

본문

반응형

mybatis 연동시 아래 에러를 만나면..

Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for


Mapping 관련 컬럼에 문제가 없는지 확인하고


아래 3개가 일치하는지 확인하자..


most importantly you should use same names for.

  • interface = xxx.yyy.mappers.SettingMapper.class
  • mapper file = /xxx/yyy/mappers/SettingMapper.xml
  • mapper namespace = xxx.yyy.mappers.SettingMapper



저는 namespace 만 유니크 하면 되는줄 알았다가 낭패를 봤네요.

반응형

관련글 더보기

댓글 영역