-
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 파일을 읽어들이지못해 나는 에러였다.<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
XML 파일에 추가해주었더니 해결되었다.
'서버 & 프레임워크 > Spring & SpringBoot' 카테고리의 다른 글
hikaripool-1 - failed to execute isvalid() for connection 에러 해결 (1) 2025.02.17