Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-09-08 02:07:28.798 ERROR 10540 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
Process finished with exit code 1
When the springboot project is started, no error is reported, but it will be terminated automatically later. View POM file
<!-- spring boot Integration mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.0</version>
</dependency>
<!-- MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
The solution: in the pom.xml Remove database related dependencies (MySQL connection)- java.jar, mybatis.xxx.jar, PageHelper, database connection pool, etc.)
There must be a default configuration file, if any. Such as database connection configuration.
Read More:
- [Solved] The version of springcloud must support the current version of springboot, otherwise the startup project will report an error: error starting ApplicationContext
- How to Solve Application failed to start error
- [Solved] Springboot Project Startup Error: Error starting ApplicationContext
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- How to Solve Error: Failed to load ApplicationContext
- New Spring boot startup error Failed to auto-configure a DataSource
- [error record] Android application release package error handling (turn off syntax check log processing release configuration)
- Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master
- How to Solve “Error db.num is null” when starting Nacos
- [neo4j] error report when visiting neo4j in spring boot project
- Springboot running shows application run failed [How to Solve]
- ApplicationContext.xml file header error Referenced file contains errors
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- git_error:unable to auto-detect email address [How to Solve]
- [Solved] Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.DataSource>
- Win10 Right-Click desktop to Display Setting Error [How to Solve]
- Centos7 hive started to report an error. There is no route to the host. The firewall has been closed
- [Solved] Click the play button to display: e/mediaplayer: error (1, – 2147483648)
- [Solved] Nacos2.1.1 Startup Error: nacos is starting with standalone
- System Startup and Display: [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid