티스토리 뷰

반응형

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'BController': Unsatisfied dependency expressed through field 'sqlSession'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mapperLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:com/javalec/springMVCBoard/dao/mapper/*.xml]: class path resource [com/javalec/springMVCBoard/dao/mapper/] cannot be resolved to URL because it does not exist org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:587) org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)

 

IntelliJ Caused by: java.lang.IllegalArgumentException: Could not resolve resource location pattern

 

** Eclipse project를  IntelliJ 로 옮길때 생기는 에러 **

 

1. Check Import Maven projects automatically

 File > Settings > Maven > Importing, there is a checkbox that says "Import Maven projects automatically"

2. clean Maven Projects

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함