spring cloud 客户端连接config配置中心报错

报错信息:[color=red]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,redis,config,mongodb,activemq,socketio" are currently active)[/color]

eureka客户端 连接不到config 配置中心

1.yml配置文件名称
application 关键字都换成bootstrap

2.删除项目中所有的这个依赖

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>


3.测试成功
发布了201 篇原创文章 · 获赞 5 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/mutourenoo/article/details/84923698