You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/08/30 06:55:25 UTC

[GitHub] weichao666 commented on a change in pull request #59: change instance_description to service_description

weichao666 commented on a change in pull request #59: change instance_description to service_description
URL: https://github.com/apache/incubator-servicecomb-docs/pull/59#discussion_r213921011
 
 

 ##########
 File path: java-chassis-reference/zh_CN/general-development/local-develop-test.md
 ##########
 @@ -110,14 +110,14 @@ setProperty第二个参数填写registry.yaml在磁盘中的系统绝对路径
 
 ## 通过设置环境信息方便本地调试
 java chassis在设计时,严格依赖于契约,所以正常来说契约变了就必须要修改微服务的版本。但是如果当前还是开发模式,那么修改接口是很正常的情况,每次都需要改版本的话,对用户来说非常的不友好,所以增加了一个环境设置。如果微服务配置成开发环境,接口修改了(schema发生了变化),重启就可以注册到服务中心,而不用修改版本号。但是如果有consumer已经调用了重启之前的服务,那么consumer端需要重启才能获取最新的schema。比如A -> B,B接口进行了修改并且重启,那么A这个时候还是使用B老的schema,调用可能会出错,以免出现未知异常,A也需要重启。有三种方式可以设置,推荐使用方法1
-* 方法1:通过JVM启动参数**-Dinstance_description.environment=development**进行设置
+* 方法1:通过JVM启动参数**-Dservice_description.environment=development**进行设置
 
 * 方法2:通过microservice.yaml配置文件来指定
 
-```yaml
-instance_description:
+ ```yaml
+service_description:
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services