Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-12-28 21:16:45.892 ERROR 14764 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
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).
์์ ๊ฐ์ ๋ด์ฉ์ผ๋ก ์ค๋ฅ๊ฐ ๋ฐ์ํ์ฌ ์คํ์ด ๋์ง ์์ ๊ฒฝ์ฐ,
์์ธ์ DB์ ์ฐ๊ฒฐํ๊ธฐ ์ํด ํ์ํ ์ ๋ณด๊ฐ ์๊ธฐ ๋๋ฌธ์ด๊ณ
ํด๊ฒฐ๋ฐฉ๋ฒ์ application.properties ์ JDBC url์ ์ถ๊ฐํด์ฃผ๋ ๊ฒ์ด๋ค.
# data source
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/[DB์ด๋ฆ]?serverTimezone=Asia/Seoul
spring.datasource.username=[id์
๋ ฅ]
spring.datasource.password=[pw์
๋ ฅ]
'ํ๋ก์ ํธ > funding mall - TIFY' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Spring Security๋? (0) | 2023.01.22 |
---|---|
JWT๋? (0) | 2023.01.22 |
[Spring Boot][Error] Connection is broken: "java.net.SocketTimeoutException: connect timed out: localhost" (0) | 2023.01.10 |
์ค๊ณ ํ์ ์ค๋น (0) | 2022.12.28 |
[Spring Boot][Error] NoMatchingConfigurationSelectionException: No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.1 was found. (0) | 2022.12.28 |