저는 IntelliJ 14에서 새로 왔으며 이제는 Eclipse에서 IntelliJ로 프로젝트를 마이그레이션했습니다. 문제는이 오류가 발생합니다.이클립스에서 intelliJ로 프로젝트를 마이그레이션했습니다 : FileNotFoundException
java.io.FileNotFoundException: class path resource [src/main/java/com/myproject/beans/beans.xml] cannot be opened because it does not exist.
beans.xml이이 디렉토리에 있는지 확인합니다.
AbstractApplicationContext context = new ClassPathXmlApplicationContext(
"com/myproject/beans/beans.xml");
context.close();
beans.xml 환경은 :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
......
</beans>
"유사한 이름의 디렉토리"오류가 발생하지 않도록 파일 시스템을 검사 할 수 없기 때문에 일부 스크린 샷이 도움이 될지도 모릅니다 :) –