Exception
[Exception] class path resource [mapper/] cannot be resolved to URL because it does not exist
헤르메스의날개
2021. 7. 17. 01:12
728x90
Open-JDK 11
Spring Boot
IntelliJ 를 사용해서 프로젝트를 테스트 하던 중 아래와 같은 오류가 발생하였습니다.
내용은 mapper 폴더를 못 찾는다는 내용입니다.
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
/mapper 폴더가 target/classes 폴더로 복사되지 않아서 발생한 문제입니다.
$> mvn compile 하면 복사된 것을 확인 할 수 있습니다.
Spring Boot 도 정상적으로 실행됩니다. 자동 복사는 안되는 걸까요.. ^^;;
728x90