아무거나

Invalid bound statement (not found) 에러 문제 본문

Java/Mybatis

Invalid bound statement (not found) 에러 문제

전봉근 2018. 12. 5. 21:26
반응형


Mybatis 작업도중에 Invalid bound statement (not found) 에러가 발생했을때를 알아보자.

자주 실수하여 발생하는 문제는 아래와 같다


- Mapper Interface와 Mapping되는 .xml 파일에 오타가 있을 경우(ex: Mapper Interface에 선언한 메서드명과 .xml에 매핑하는 id값과 일치하지 않을 때)

- classpath에 경로가 잘못될 경우

   [ex]

mybatis:
mapper-locations: classpath:mapper/**/*.xml


보통 개발을 하면서 자주하는 실수들므로 주의해서 작성하자.

반응형
Comments