반응형
***************************
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: [디비 접속 비밀번호]
반응형
'Develop > SPRING BOOT' 카테고리의 다른 글
스프링 부트 재시작 없이 자동 시작하기 (0) | 2020.09.10 |
---|
댓글