首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置数据位置'configserver:http://localhost:8888/‘不存在

配置数据位置'configserver:http://localhost:8888/‘不存在
EN

Stack Overflow用户
提问于 2022-04-06 11:23:19
回答 1查看 603关注 0票数 2

我的配置服务器运行在localhost:8888上,但是当我尝试从配置服务器获取信任时,它显示了以下错误

代码语言:javascript
复制
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:'

我的另一个微服务有这个application.properties

代码语言:javascript
复制
spring.application.name=limits-service
spring.config.import=configserver:http://localhost:8888/
spring.profiles.active=dev
EN

回答 1

Stack Overflow用户

发布于 2022-07-12 14:54:28

在将文本configserver从

spring.config.import性质

在此之前

spring.config.import=configserver:http://localhost:8888/

之后

spring.config.import=http://localhost:8888/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71765871

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档