ํฐ์คํ ๋ฆฌ ๋ทฐ
[Springboot] error:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. ์๋ฌ์์ธ
Kithub 2019. 10. 17. 16:01์คํ๋ง๋ถํธ๋ฅผ ์คํ์ ์๋ ์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ ํ์๋ค๋ฉด
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