org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring-config.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [com/domain/sql/mapper/UserDao.xml]'; nested exception is java.io.FileNotFoundException: class path resource [com/domain/sql/mapper/UserDao.xml] cannot be opened because it does not exist
이런 에러가날때가 있다.
mybatis 설정 xml파일을 보면
<property name="mapperLocations" value="classpath:com/domain/sql/mapper/*.xml" />
이런식으로 되어있을텐데
<property name="mapperLocations" value="classpath*:com/domain/sql/mapper/*.xml" />
으로 바꿔주면 된다.