关于idea在springboot启动时报错Cannot determine embedded database driver class for database type NONE解决办法

关于idea在springboot启动时报错Cannot determine embedded database driver class for database type NONE解决办法

参考链接: https://blog.csdn.net/fjnpysh/article/details/74360356

原因是:springboot启动时会自动注入数据源和配置jpa

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

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


正确截图如下:

在自己的Application启动类的注解上加上exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class}



扫描二维码关注公众号,回复: 1480872 查看本文章

猜你喜欢

转载自blog.csdn.net/master_shifu_/article/details/80420099