반응형
오류 사황
***************************
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.propertiesdp JDBC url을 추가해준다.
# DataSource
spring.datasource.url=jdbc:mysql://localhost:3306/[DB스키마명]?autoReconnect=true
spring.datasource.username=[DB접속Id]
spring.datasource.password=[DB접속Password]
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
반응형
'개발 > springboot 게시판 만들기' 카테고리의 다른 글
빈 등록 방식 - 컴포넌트 탐색 (0) | 2021.09.21 |
---|---|
[spring boot] jsp 사용하기 (0) | 2020.06.27 |
[springboot 게시판만들기] 2. Hello World 화면출력 (0) | 2020.06.27 |
[springboot 게시판만들기] 1. 프로젝트 생성 (0) | 2020.06.26 |