감자의 개발공부 일지

[Springboot] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.~.~.dao.~DAO.~] w.. 본문

JAVA/Spring / Springboot

[Springboot] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.~.~.dao.~DAO.~] w..

Elie_J 2023. 1. 6. 13:24
반응형

Spirngboot 실습 도중 

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.~.~.dao.~DAO.~] with root cause

다음과 같은 오류가 발생하였다.😢

 

진짜 오랫동안 삽질했는데 

별거 아닌 이유였다

 

꼭 ~.xml 파일의 mapper id를 체크해봐야한다!🤦‍♂️

 

~.xml 파일의 <select id='~~'></select> 부분에서

'~~'이 부분이 ~~DAO.java파일에서 값이 같아야 한다 만약 다르다면 위에와 같이 에러가 발생한다! 

 

그럼 에러해결! 야호~😁

반응형