๐จ Projects/์๋ฌ๋ชจ์
[์๋ฌ๋ชจ์] Failed to configure a DataSource
HelloRabbit
2023. 3. 3. 23:56
728x90
์๋ฌ ์ค๋ช
์ดํด๋ฆฝ์ค์์ ํ๋ก์ ํธ๋ฅผ ์คํ๋ง ๋ถํธ๋ก ์คํํ ๋ ๋๋ ์๋ฌ
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
ํด๊ฒฐ
ํ๋ก์ ํธ์ application.properties ํ์ผ์ JDBC url์ ์ถ๊ฐํ๋ฉด ๋๋ค.
# DataSource
spring.datasource.url=jdbc:mysql://localhost:3306/[DB์คํค๋ง๋ช ]?serverTimeZone=Asia/Seoul
spring.datasource.username=[DB์ ์Id]
spring.datasource.password=[DB์ ์Password]
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver