티스토리 뷰
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
'SW개발 > Spring Framework' 카테고리의 다른 글
Spring Boot -Web Project 시작 요약 (0) | 2019.06.13 |
---|---|
Spring boot jsp 못 읽는 경우 (14) | 2019.06.12 |
slf4j failed to load class org.slf4j.impl.staticloggerbinder (0) | 2019.04.26 |
Neither BindingResult nor plain target object for bean name 'categoryOptions' available as request attribute (0) | 2019.02.27 |
구동 완료 후 바로 실행되는 메서드 (0) | 2019.02.22 |