You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/03/04 01:26:10 UTC

[servicecomb-docs] branch master updated: [SCB-2388] springmvc link of using-resttemplate.md is invalid (#260)

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 516f197  [SCB-2388] springmvc link of using-resttemplate.md is invalid (#260)
516f197 is described below

commit 516f19702cc31180cfbabf31e94e263d0a576f84
Author: david6969xin <86...@users.noreply.github.com>
AuthorDate: Fri Mar 4 09:26:05 2022 +0800

    [SCB-2388] springmvc link of using-resttemplate.md is invalid (#260)
---
 .../docs/build-consumer/using-resttemplate.md      | 28 ++++++++++++----------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/java-chassis-reference/zh_CN/docs/build-consumer/using-resttemplate.md b/java-chassis-reference/zh_CN/docs/build-consumer/using-resttemplate.md
index f9eb693..56c65d6 100644
--- a/java-chassis-reference/zh_CN/docs/build-consumer/using-resttemplate.md
+++ b/java-chassis-reference/zh_CN/docs/build-consumer/using-resttemplate.md
@@ -61,7 +61,7 @@ public class JaxrsConsumerMain {
 
 > 说明:
 >
-> * URL格式为:`cse://microserviceName/path?querystring`。以[用SpringMVC开发微服务](/用SpringMVC开发微服务)中定义的服务提供者为例,其微服务名称是`springmvc`,basePath是`/springmvchello`,那么URL中的microserviceName=`springmvc`,请求sayhi时的path=`springmvchello/sayhi`,所以示例代码中请求sayhi的URL是`cse://springmvc/springmvchello/sayhi?name=Java Chassis`。具体代码示例如下 :
+> * URL格式为:`cse://microserviceName/path?querystring`。以[用SpringMVC开发微服务](../build-provider/springmvc.md)中定义的服务提供者为例,其微服务名称是`springmvc`,basePath是`/springmvchello`,那么URL中的microserviceName=`springmvc`,请求sayhi时的path=`springmvchello/sayhi`,所以示例代码中请求sayhi的URL是`cse://springmvc/springmvchello/sayhi?name=Java Chassis`。具体代码示例如下 :
 
 
 ```java
@@ -82,29 +82,31 @@ public class SpringmvcHelloImpl implements Hello {
     }
 }
 ```
-> 下述代码是示例项目  [ SpringMVC ](https://github.com/apache/incubator-servicecomb-java-chassis/tree/master/samples/springmvc-sample)的 springmvc-provider 模块 中 resources 目录下 microservice.yaml
+> 下述代码是示例项目  [ SpringMVC ](https://github.com/apache/servicecomb-samples/tree/master/java-chassis-samples/springmvc-sample)的 springmvc-provider 模块 中 resources 目录下 microservice.yaml
 
 ```yaml
-APPLICATION_ID: springmvc-sample
-service_description:
-  name: springmvc # 这里就是定义的微服务名称
-  version: 0.0.2
 servicecomb:
   service:
+    application: springmvc-sample
+    name: springmvc
+    version: 0.0.1
+
     registry:
-      address: http://127.0.0.1:30100
+      # Default using local service center
+      address: http://localhost:30100
+      # address: https://cse.cn-south-1.myhuaweicloud.com
+      instance:
+        watch: false
+  kie:
+    serverUri: http://localhost:30110
+
   rest:
     address: 0.0.0.0:8080
-  highway:
-    address: 0.0.0.0:7070
   handler:
     chain:
       Provider:
         default: bizkeeper-provider
-cse:
-  service:
-    registry:
-      address: http://127.0.0.1:30100		#service center address
+
 ```