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' 카테고리의 다른 글
윈도우 명령 프롬프트(cmd)에서 ls = dir / clear = cls (0) | 2023.03.14 |
---|---|
'git log' 에러 코드 128로 실패함: fatal: detected dubious ownership in repository at '경로' (0) | 2023.03.04 |
JdbcSQLIntegrityConstraintViolationException (0) | 2022.11.19 |
jdbcsqlsyntaxerrorexception (0) | 2022.11.18 |
IllegalStateException: Ambiguous handler methods mapped for (0) | 2022.11.17 |