Reason: Failed to determine a suitable driver class

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-03-29 15:01:42.227 ERROR 9172 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :


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
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
Reason for error]:Error in data source
Check]: ①application in the url address
②Database configuration
③Introduction of dependencies in the pom file
The reason for my error is that the druid dependency is introduced incorrectly


[Note]: druid data source has spring
At the same time, some people on the Internet tell us to comment out mybaties dependencies and add annotations to the startup class, but I didn’t follow the Internet’s instructions.
mybaties retain

Similar Posts: