配置数据位置 'configserver:http://localhost:8888/'不存在
的配置服务器正在Localhost:8888上运行
Config data location 'configserver:http://localhost:8888/' does not exist
Action:
Check that the value 'configserver:http://localhost:8888/' at class path resource
[application.properties] - 2:22 is correct, or prefix it with 'optional:'
我
spring.application.name=limits-service
spring.config.import=configserver:http://localhost:8888/
spring.profiles.active=dev
My config server is running on localhost:8888 but when i try to fetch configs from my config server ,its shows this error
Config data location 'configserver:http://localhost:8888/' does not exist
Action:
Check that the value 'configserver:http://localhost:8888/' at class path resource
[application.properties] - 2:22 is correct, or prefix it with 'optional:'
my other microservice has this application.properties
spring.application.name=limits-service
spring.config.import=configserver:http://localhost:8888/
spring.profiles.active=dev
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从
之前的
spring.config.import = configserver:http:// localehost:8080/
之后
spring.config.import = http:// localehost:8080/
This worked for me after removing text configserver from
Before
spring.config.import=configserver:http://localehost:8080/
After
spring.config.import=http://localehost:8080/
我昨天也遇到了这个问题,原因是客户端应用程序中缺少 spring-cloud-starter-config 的依赖项。
所以检查你的 gradle 依赖项或 Maven PoM
或
I also experienced this issue yesterday, the cause is a missing dependency for spring-cloud-starter-config in the client application.
so check your gradle dependencies or Maven PoM
or