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 :
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).
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
Correct:
错误:
[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:
- SpringBoot Frame: Failed to determine a suitable driver class [How to Solve]
- Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
- Springboot Error: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd
- How to Solve Cannot determine embedded database driver class for database type NONE
- [Solved] Failed to bind properties under ” to com.zaxxer.hikari.Hikari DataSource Spring Boot
- [Solved] Spring Boot Error: “jdbcUrl is required with driverClassName.”
- [Solved] Javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- [Solved] Spring Boot Startup Error: DataSourceProperties$DataSourceBeanCreationException
- [Solved] Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupported
- Nacos: How to Solve failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:8848])