스프링 / gradle로 구성된 프로젝트에서 서버 띄울때 오류발생

***************************
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

 

 

-> 해결방법

build.gradle 파일에 소스 한줄 추가

ㄴ dependencies 안에 추가

compile("com.h2database:h2")

+ Recent posts