XML
-
Factory method 'sqlSessionFactory' threw exception; nested exception is java.io.FileNotFoundException: class path resource [mapper/] cannot be resolved to URL because it does not exist 에러 해결서버 & 프레임워크/Spring & SpringBoot 2025. 2. 18. 10:18
Factory method 'sqlSessionFactory' threw exception; nested exception is java.io.FileNotFoundException: class path resource [mapper/] cannot be resolved to URL because it does not exist Mybatis 환경세팅을하고 스프링부트를 실행시켰는데 해당 에러가 나면서 실행이 되지 않았다.파악해보니, Mybatis가 Mapper XML 파일을 읽어들이지못해 나는 에러였다. XML 파일에 추가해주었더니 해결되었다.