728x90
바뀌기 전

 

원래 쿼리 매핑을 해주는 xml 파일인 "DoseoroDao.xml" 이 원래 dao 폴더에 있었고 application.yml 에는 밑에와 같이 있었다.

mybatis:
  config-location: classpath:mapper.xml

 

바뀐 후

 

 

Deoseoro.xml 파일을 resources 폴더로 옮기고 밑에와 같이 추가 하니까 정상적으로 실행 되었다..

mybatis:
  config-location: classpath:mapper.xml
  mapper-locations: classpath:DoseoroDao.xml

 

느낀 점

폴더 경로를 인식하는데 문제가 있는 것 같았다. 리소스 루트소스 루트의 경로 인식이 다른 것 같다. 이를 명심해야겠다..

 

 

참조

https://twofootdog.github.io/Mybatis-Invalid-bound-statement(not-found)-%EC%97%90%EB%9F%AC/ 

 

[Mybatis]invalid bound statement (not found) 에러 | 두발로걷는개

Mybatis 에러 원인 및 해결 방법

twofootdog.github.io

 

+ Recent posts