콘솔 창에 뜬 오류를 살펴보자. 

ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/action-mybatis.xml]: 
Invocation of init method failed; 
nested exception is java.io.FileNotFoundException: class path resource [mybatis/model/parcelConfig.xml] cannot be opened because it does not exist

 


오류 메세지를 보면 

'sqlSessionFactory' 라는 이름의 bean을 생성하는 도중 문제가 발생했다고 한다.

java.io.FileNotFoundException 오류라고 나오는 것을 보니 해당 파일을 찾지 못하는 상황이다.

 

그리고 class path로 지정한 resource 경로인 [mybatis/model/parcelConfig.xml] 가 존재하지 않는다고 나온다.

 

아.. 저건 내가 사용하고 있는 Config.xml 파일이 아니다... 바보.. 

수정해주면 말끔히 해결된다..ㅎ

 

+ Recent posts