config的配置没有听明白
来源:6-3 Config Client

qq_金融超越战_03665934
2018-05-17
假如order这个服务在config-repo中的配置文件不是order-dev.yml,order-test.yml,而是xx-dev.yml,xx-test.yml,那么很明显spring:
application:
name: order
cloud:
config:
discovery
enable: true
service-id:CONFIG
profile: test 这样的组合就不行了,这个时候该怎么配置xx这个符号呢?
3回答
-
慕粉13951610073
2018-12-09
这问题还不简单啊。
spring:
cloud:
config:
discovery:
service-id: config
enabled: true
profile: prod
label: master
name: orderspring.cloud.config.name=xx 这样设置成xx就行了。
012018-12-11 -
拾千
2018-05-31
我也想知道,没查到资料
00 -
殇腥黯皓
2018-05-18
你可以看看控制台里的mapping,里面显示了可以访问的url,看看里面的xx变量代表什么,然后再去该yml,仅个人意见
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5674 学习 · 2489 问题
相似问题