Tiny Bunny
본문 바로가기
⚙️ERROR & CS/ERROR

[에러] Exception encountered during context initialization 뜰 때

by soonybutter 2024. 10. 30.
728x90



Spring 으로 servlet 연결,
html 파일 실행했더니 자꾸 콘솔창에 에러가 떴다...
 
 
Exeception encounted during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationExecption: Error creating bean with name 'dataSource' defined in class path resource
 
초기화 하는중 예외 발생 + 자꾸 refresh 하는데 실패했다 해서
톰캣도 재시작해주고 clean도 여러번했지만 찾기 어려웠다..
알고보니 DB 접속 문제였다.
 

db.properties

 
- url 에 \을 적게 추가해서 붙여넣은것이 문제였다.. 
 
 
 
 
 
 
 
 
확인 할 것


1. 톰캣 서버가 제대로 start되었는지 확인하기. (+오라클 클라우드도 서버 확인)
2. sts 프로젝트 연결 시에 db 연결이 안됐을 확률 크다. 확인하기
3. db.properties 에서 oracle db  정보 다시 확인 하기.

728x90

TOP

Designed by 티스토리