文章参考自:http://blog.csdn.net/u011186019/article/details/57465052
启动springboot时提示错误信息:
Cannot determine embedded database driver class for database type NONE
原因:springboot启动时会自动注入数据源和配置jpa
解决办法:在@SpringBootApplication中和@EnableAutoConfiguration排除其注入:
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
网友评论