You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Bo Li (JIRA)" <ji...@apache.org> on 2018/03/05 06:50:00 UTC

[jira] [Commented] (SCB-210) Use map feature to design microservice yaml file to support control flag of config center

    [ https://issues.apache.org/jira/browse/SCB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385670#comment-16385670 ] 

Bo Li commented on SCB-210:
---------------------------

在foundations/foundataion-config/README.md下面看到了关于配置项映射的描述。

## 进行配置项映射
有些情况下,我们要屏蔽我们使用的一些开源组件的配置并给用户提供我们自己的配置项。在这种情况下,可以通过classpath下的config.yaml进行映射定义:

registry:
  client:
    serviceUrl:
      defaultZone: eureka.client.serviceUrl.defaultZone

定义映射后,在配置装载的时候框架会默认进行映射,把以我们定义的配置项映射为开源组件可以认的配置项。

> Use map feature to design microservice yaml file to support control flag of config center
> -----------------------------------------------------------------------------------------
>
>                 Key: SCB-210
>                 URL: https://issues.apache.org/jira/browse/SCB-210
>             Project: Apache ServiceComb
>          Issue Type: Sub-task
>          Components: Java-Chassis
>            Reporter: Bo Li
>            Assignee: Bo Li
>            Priority: Major
>
> check comment of wujimin at:
> https://github.com/apache/incubator-servicecomb-java-chassis/pull/489/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)