Skip to content
Advertisement

Failed to determine a suitable driver class spring

When I run my Spring Boot project, I get this error:

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

I got this dependencies in my pom.xml file:

JavaScript

This error occurred when I tried to change my Spring Boot version to 2.5.5.

Advertisement

Answer

I found the problem, this dependency was deleted and that’s why this issue occurred.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement