SW개발/Spring Framework
Spring boot / Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
개소왕
2019. 6. 12. 22:16
* 개요
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
* 해결
application.properties 에 DB 관련 설정 추가해줘야 함.
spring.datasource.url=jdbc:mysql://localhost/myapp
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver