IT 문제해결

Reason: Failed to determine a suitable driver class

클레인 2019. 3. 8.
반응형

Sts 실행 시 아래와 같은 문제가 발생하였다.

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

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


DB설정에 문제가 있기 때문에 나타나는 메시지이다.

https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/reference/htmlsingle/#boot-features-configure-datasource


application.properties 또는 yml 에 설정한 DB정보를 다시 설정 후 실행할 것

mysql jdbc 설정하기.

DataSource configuration is controlled by external configuration properties in spring.datasource.*. For example, you might declare the following section inapplication.properties:

반응형

댓글