java.io.FileNotFoundException: class path resource [temp.txt] cannot be resolved to absolute file path because it does not reside in the file system: (1) 썸네일형 리스트형 Java 에러 java.io.FileNotFoundException: class path resource [temp.txt] cannot be resolved to absolute file path because it does not reside in the file system: // resources 폴더에 있는 temp.txt 파일을 읽어온다. File file = new ClassPathResource("temp.txt").getFile(); ... java.io.FileNotFoundException: class path resource [temp.txt] cannot be resolved to absolute file path because it does not reside in the file system: ... resources 폴더에 있는 파일을 읽어들이는 코드가 local에서는 잘 동작하는데, 개발계에서 자꾸 위와 같은 에러가 발생하였다. 구글링을 해보니 원인을 다음과 같았다. 1. local에서 코드를 실행시킬 때는 temp.txt 파일이 소스폴더에 독립적인 .. 이전 1 다음