๋ณธ๋ฌธ์œผ๋กœ ๋ฐ”๋กœ๊ฐ€๊ธฐ

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์ž…๋ ฅ]