added new version feature description in quick start Signed-off-by: eric-lee-ltk <[email protected]>
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 <[email protected]> Authored: Tue Oct 24 10:32:22 2017 +0800 Committer: Willem Jiang <[email protected]> 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:
