- [스프링][문제해결] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):2022년 06월 15일 17시 50분 06초에 업로드 된 글입니다.작성자: DandyNow728x90반응형
MyBatis 연동을 어노테이션을 이용하여 진행한 실습은 성공하였으나 xml 파일을 이용한 경우에는 계속 [그림 1]과 같은 오류가 발생했다.
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
원인은-mapper 파일인-xml 파일이 있는 경로를 잘 못 지정했기 때문이었다. 그 밖에도 mapper interface의 method명과 xml파일의 id가 일치하지 않을 경우에도 이러한 에러가 발생할 수 있다. 이 문제로 한 시간을 날렸다!
728x90반응형'언어·프레임워크 > Spring' 카테고리의 다른 글
[스프링] Oracle의 nextval 함수를 MySQL에서 처리하는 방법 (0) 2022.06.20 [스프링][문제해결] MariaDB와 log4jdbc 관련 에러 (0) 2022.06.19 [스프링][문제해결] Resource specification not allowed here for source level below 1.7 에러 해결 (0) 2022.06.15 [스프링][문제해결] "11 or greater is required" 에러로 인해 STS가 실행 되지 않는다면 (0) 2022.06.13 [스프링][문제해결] Spring Legacy Project 작업을 위한 STS 버전은 3.9.14를 추천 (0) 2022.06.13 댓글