一、不连接数据库启动springboot报错

  1. Cannot determine embedded database driver class for database type NONE  

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

解决办法:在SpringBootApplication中加入(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-06-30
  • 2021-11-29
  • 2021-09-17
  • 2021-08-13
  • 2021-09-15
猜你喜欢
  • 2021-07-04
  • 2021-06-12
  • 2021-11-30
  • 2021-11-27
  • 2021-08-22
  • 2021-04-04
  • 2022-12-23
相关资源
相似解决方案