Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- mybatis
- jQuery
- 자바스크립트
- 정보처리기사필기
- mapper
- 1단원
- 정처기실기
- backend
- spring
- 오라클
- 리눅스
- Linux
- 4단원
- 정처기필기
- 실기
- 스프링
- DB
- Database
- 정처기
- 인터페이스구현
- 5단원
- 통합구현
- 정보처리기사실기
- 자바
- 데이터베이스
- 정보처리기사
- Java
- javascript
- 제이쿼리
- 요구사항확인
Archives
- Today
- Total
세라공원
[spring] jUnit , OracleDB 연결 에러 본문
java.lang.IllegalStateException: Failed to load ApplicationContext
ERROR: org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@598067a5] to prepare test instance [com.community.sera.ReplyMapperTest@2101b44a]
java.lang.IllegalStateException: Failed to load ApplicationContext
해결 방식
1) @WebAppConfiguration 주석 추가 -> 실패
2) 서비스에서 Oracle DB 연결되어있는지 확인 -> 연결 되어있었음. 원인이 아님.
3) rootContext.xml 확인 -> mybatis에 spring과 연동하는 방식이 주석으로 막혀 있었음. -> 해결.
해결 : rootContext에 주석으로 막혀 있었음.
<!-- mybatis에 spring과 연동하는 방식을 적용할 때 필요 -->
<mybatis-spring:scan base-package="경로"/>
'Error' 카테고리의 다른 글
[Linux][CentOS7] ifconfig 오류 : -bash: ifconfig: command not found (0) | 2022.10.25 |
---|---|
[linux] source /etc/profile 적용 후 커맨드 나오지 않는 상황 (0) | 2022.10.13 |
[spring ]MyBatis 오류: Invalid bound statement (not found) (0) | 2022.05.13 |
Comments