[Spring Boot] Fail to configure a Datasource - Seonmi-Hwang/study GitHub Wiki

에러 발생 캡쳐

image

Run as > Spring Boot App 를 클릭하면 콘솔에 아래와 같이 표시되며 서버 실행이 중단된다.

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

application.properties 파일이 없거나, 인식이 안됐거나, DB설정이 제대로 되어있지 않았을 경우에 발생