Small Asteroid Blog

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 본문

백엔드/Spring

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

작은소행성☄️ 2021. 4. 22. 15:10
728x90

 

 

 

 

다음과 같은 오류를 만나면

DB 정보가 입력되지 않아 생기는 오류이므로 

 

application.properties 에 아래 코드를 입력해주면 된다. 

 

 

spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://localhost:3306/database이름?characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=
spring.datasource.password=

 

 

728x90
반응형