You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by jb...@apache.org on 2017/12/12 07:05:21 UTC

[03/51] incubator-servicecomb-website git commit: added new version feature description in quick start

added new version feature description in quick start

Signed-off-by: eric-lee-ltk <li...@huawei.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/commit/31414329
Tree: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/tree/31414329
Diff: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/diff/31414329

Branch: refs/heads/asf-site
Commit: 31414329f62e7354cc6a8df633d82062fc21e78c
Parents: 26bbf68
Author: eric-lee-ltk <li...@huawei.com>
Authored: Tue Oct 24 10:32:22 2017 +0800
Committer: Willem Jiang <ji...@huawei.com>
Committed: Mon Oct 23 21:43:28 2017 -0500

----------------------------------------------------------------------
 _docs/cn/quick-start-bmi.md | 8 ++++++++
 _docs/quick-start-bmi.md    | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/31414329/_docs/cn/quick-start-bmi.md
----------------------------------------------------------------------
diff --git a/_docs/cn/quick-start-bmi.md b/_docs/cn/quick-start-bmi.md
index 229dcac..39188f5 100644
--- a/_docs/cn/quick-start-bmi.md
+++ b/_docs/cn/quick-start-bmi.md
@@ -82,6 +82,10 @@ public class CalculatorRestEndpoint implements CalculatorEndpoint {
   }
 }
 ```
+
+ServiceComb从0.3.0版本之后提供了对SpringMvc中简化注解(即`GetMapping`等)的支持。
+{: .notice--info}
+
 这里用`@RestSchema`注释端点后, **ServiceComb** 微服务框架会自动生成对应的服务端点契约,并根据
 如下的 `microservice.yaml` 文件中的定义来配置端点端口,将契约和服务一起注册到服务注册中心。
 ```yaml
@@ -138,6 +142,10 @@ public class CalculatorApplication {
       <artifactId>spring-cloud-zuul</artifactId>
     </dependency>
 ```
+
+ServiceComb从0.4.0-SNAPSHOT版本之后新增了`spring-cloud-zuul`模块使能提供对zuul的兼容。
+{: .notice--info}
+
 在 `application.yaml` 文件中配置路由规则及服务端口信息:
 ```yaml
 zuul:

http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/31414329/_docs/quick-start-bmi.md
----------------------------------------------------------------------
diff --git a/_docs/quick-start-bmi.md b/_docs/quick-start-bmi.md
index ac356ee..c6a1cb7 100644
--- a/_docs/quick-start-bmi.md
+++ b/_docs/quick-start-bmi.md
@@ -83,6 +83,10 @@ public class CalculatorRestEndpoint implements CalculatorEndpoint {
   }
 }
 ```
+
+ServiceComb supports SpringMvc simplified annotations, e.g. `GetMapping`, since version 0.3.0.
+{: .notice--info}
+
 Note that ServiceComb can auto-generate service contract when annotating endpoints with `@RestSchema`. Then configure the endpoint in  `microservice.yaml` as follows to register the contact and microservice to service center.
 ```yaml
 APPLICATION_ID: bmi
@@ -138,6 +142,10 @@ Introduce ServiceComb dependency:
       <artifactId>spring-cloud-zuul</artifactId>
     </dependency>
 ```
+
+ServiceComb added `spring-cloud-zuul` module to provide better compatibility with zuul since version 0.4.0-SNAPSHOT.
+{: .notice--info}
+
 Configure routing rules and service endpoint in `application.yaml`.
 ```yaml
 zuul: