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 (the profiles "dev" are currently active).

解决办法:

在@SpringBootApplication注解中加上(exclude = DataSourceAutoConfiguration.class)

APPLICATION FAILED TO START

 

作用:排除自动注入数据源的配置(取消数据库配置),一般使用在客户端(消费者)服务中

 

相关文章:

  • 2022-12-23
  • 2021-04-23
  • 2021-04-11
  • 2021-06-09
  • 2021-06-25
  • 2021-09-30
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-08-04
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案