Develop/SPRING BOOT
Spring Boot 최초 실행 시 'Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
걸어다니는 종합병원
2020. 9. 9. 23:14
반응형
***************************
APPLICATION FAILED TO START
***************************
Description:
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
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
오류가 발생하면
application.yml 에 아래 코드를 추가 해준다. (마리아 디비를 사용한경우)
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: jdbc:mariadb://localhost:3306/[디비 스키마 이름]
username: [디비 접속 아이디]
password: [디비 접속 비밀번호]
반응형