springboot Cannot determine embedded database driver class for database type NONE解决办法

来源:互联网 发布:电信网络电视机顶盒 编辑:程序博客网 时间:2024/06/03 14:57
原因是:springboot启动时会自动注入数据源和配置jpa

解决:在@SpringBootApplication中排除其注入

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

阅读全文
4 1