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)

 

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

 

posted on 2018-08-23 14:04  风景1573  阅读(1224)  评论(0编辑  收藏  举报