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
'난중(개발)일기 > 삽질기록' 카테고리의 다른 글
[MyBatis] org.apache.ibatis.binding.BindingException: Parameter 'email' not found. Available parameters are [arg1, arg0, param1, param2 (0) | 2022.09.05 |
---|---|
[MyBatis] 조회 시 attempted to return null from a method … (0) | 2022.09.05 |
[jsp] 한글 깨짐 현상 (0) | 2022.08.10 |
java: package springfox.documentation.spi does not exist (0) | 2022.08.10 |
[오류 해결] npm ERR! code ERESOLVE (0) | 2021.06.24 |