티스토리 뷰
[Error] nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in ServletContext resource
9aram 2019. 6. 13. 11:01org.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
'IT > SPRING' 카테고리의 다른 글
- Total
- Today
- Yesterday
- 인텔리제이단축키
- 인텔리제이
- CSS
- 영어resume
- 일렉트론
- 자바스크립트 프로그래스
- 영문이력서
- electron
- 노드
- 깃허브삭제
- CV
- 노드에러
- 영어커버레터
- 인텔리제이복사
- 지킬
- Resume
- 프로그래스
- 이력서 쓰는법
- 영문resume
- java mail
- 인텔리제이한줄복사
- 인텔리제이이클립스
- 영어이력서
- progress
- 개발자무료
- 커버레터
- 프로그래스바
- JSzip
- 영문커버레터
- PROGRESS BAR
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |