삽질 기록-error

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

숲별 2022. 11. 19. 05:33
728x90

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

 

 

Failed to configure a DataSource 에러가 발생하는 이유는 Database에 연결할 때 필요한 정보가 없기 때문이다. 주로 스프링 프레임워크를 이용해 프로젝트를 구성하는 초기에 발생하는 문제이다. 간혹 모르고 application.properties 파일이나 application.yml 파일과 같은 설정 파일을 삭제하거나 위치를 옮겼을 때에도 볼 수 있는 현상이다. 

 

 

 

내 경우엔 팀 프로젝트에서 h2에서 mysql로 서버를 바꾸고 application 내용을 공유하지 않아서 인 걸로 보인다.

(.gitignore 파일로 application파일 일부가 깃헙에 올라가지 않게 설정되어있다.)

 

 

https://7942yongdae.tistory.com/128

 

Error - Failed to configure a DataSource 에러 원인과 해결 방법

Failed to configure a DataSource 에러와 원인과 해결 방법 메시지 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. *************************** APPLICATION FAILED TO START ********

7942yongdae.tistory.com