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

来源:互联网 发布:英国知名网络品牌 编辑:程序博客网 时间:2024/06/10 02:24

1.在Application类上增加@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
阻止spring boot自动注入dataSource bean

2.检查pom.xml 在还没有配置数据源的情况下,启动项目的时候时,不能包含配置数据源的配置

阅读全文
0 0
原创粉丝点击