ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

์Šคํ”„๋ง๋ถ€ํŠธ๋ฅผ ์‹คํ–‰์‹œ ์•„๋ž˜ ์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ ํ•˜์˜€๋‹ค๋ฉด

DataSource์˜ ์„ค์ •์ด ์ œ๋Œ€๋กœ ์ด๋ฃจ์–ด์ง€์ง€ ์•Š์•„์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์ด๋‹ค.

 

***************************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 classAction: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).

 

ํ•ด๊ฒฐ๋ฐฉ๋ฒ• : ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์—ฐ๊ฒฐ์„ค์ •์„ ์ฒดํฌํ•ด๋ณด์ž.

 

resource > application.properties

spring.datasource.url=jdbc:mysql://localhost:3306/study?useUnicode=true&serverTimezone=Asia/Seoul&useSSL=false

spring.datasource.username=root

spring.datasource.password=1234

 

๋Œ“๊ธ€
๋ฐ˜์‘ํ˜•