springboot启动报错如下:

Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).

这是因为springboot默认会启动一个嵌入的数据库驱动,但是需要配置,我的项目中不需要用到数据库,所以需要跳过数据库检查

在application类上添加

@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})

即可

相关文章:

  • 2021-09-19
  • 2021-10-13
  • 2021-08-29
  • 2021-10-01
  • 2021-12-02
猜你喜欢
  • 2021-11-13
  • 2021-08-29
  • 2021-06-23
  • 2021-06-01
  • 2021-10-01
相关资源
相似解决方案