current position:Home>If you want an embedded database (H2, hsql or Derby), please put it on the classpath

If you want an embedded database (H2, hsql or Derby), please put it on the classpath

2022-01-27 03:35:27 CSDN Q & A

2021-12-16 16:39:44.383 ERROR 19108 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :


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

Disconnected from the target VM, address: '127.0.0.1:63536', transport: 'socket'

Process finished with exit code 0

I use feign The client calls , Tried all kinds of methods ,pom.xml Some of the dependencies on linked databases have also been deleted , It is also added in the main category @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}), But it's still useless. It's still wrong

How to solve this problem



Refer to the answer 1:

Failed to get database connection configuration information , The configuration center is incorrectly configured .




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270335220296.html

Random recommended