首页 > 技术文章 > APPLICATION FAILED TO START

jjSmileEveryDay 2018-08-23 14:04 原文

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)

 

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

 

推荐阅读