springboot启动报APPLICATION FAILED TO START错误解决方法

运行出错:Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-05-09 11:56:22.316 ERROR 6468 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Cannot determine embedded database driver class for database type NONE

 

@SpringBootApplication注解上加入(exclude=
{DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})解决启动数据源注入错误

 

你可能感兴趣的:(常用)