티스토리 뷰

***************************

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).

 

 

Process finished with exit code 1



해결방법

-pom.xml에 spring-boot-starter-data-jpa 라는 의존성을 넣었는데, DB관련 의존성을 넣지 않아서 에러가 난거 같습니다. spring-boot-starter-data-jpa 의존성을 삭제하거나, 위 메시지에서 제시하는대로 임베드 DB 라이브러리 중 아무거나 하나 추가하시면 저 에러는 사라질 거에요.