Error starting ApplicationContext. To display the auto-configuration report re-run your application

SpringBoot项目启动报错: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

启动springboot项目时,没有报错,但是后面自动终止。 查看pom文件

       
        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            1.3.0
        

        
        
            mysql
            mysql-connector-java
        

解决办法:在pom.xml去掉跟数据库相关的依赖(mysql-connection-java.jar、mybatis.xxx.jar、pageHelper、数据库连接池等)

如果有这些依赖的话,默认配置文件中必须有配置。如数据库连接配置。

 

你可能感兴趣的:(#,SpringBoot,Error,starting,ApplicationCont,项目启动报错)