SpringBoot常见问题--启动报错(Cannot determine embedded database driver class for database type NONE)

SpringBoot启动报错:Cannot determine embedded database driver class for database type NONE

springboot启动时会自动注入数据源和配置jpa

解决办法一:启动类中加入注解:@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

原文地址:http://blog.****.net/shangquan2012/article/details/74935314点击打开链接

解决方法二:在Application.properties文件内配置数据源即可。代码如下:

SpringBoot常见问题--启动报错(Cannot determine embedded database driver class for database type NONE)