APPLICATION FAILED TO START

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)

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


原文地址:https://www.cnblogs.com/jjSmileEveryDay/p/9523378.html