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中排除其注入

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

猜你喜欢

转载自blog.csdn.net/xiaoshiyiqie/article/details/79655480