Skip to content

[SCB-2388] springmvc link of using-resttemplate.md is invalid#260

Merged
liubao68 merged 2 commits intoapache:masterfrom
david6969xin:branch_master_2388
Mar 4, 2022
Merged

[SCB-2388] springmvc link of using-resttemplate.md is invalid#260
liubao68 merged 2 commits intoapache:masterfrom
david6969xin:branch_master_2388

Conversation

@david6969xin
Copy link
Contributor

No description provided.

> 说明:
>
> * 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开发微服务](https://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/build-provider/springmvc.html)中定义的服务提供者为例,其微服务名称是`springmvc`,basePath是`/springmvchello`,那么URL中的microserviceName=`springmvc`,请求sayhi时的path=`springmvchello/sayhi`,所以示例代码中请求sayhi的URL是`cse://springmvc/springmvchello/sayhi?name=Java Chassis`。具体代码示例如下 :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用SpringMVC开发微服务

使用相对路径即可。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@liubao68 liubao68 merged commit 516f197 into apache:master Mar 4, 2022
@david6969xin david6969xin deleted the branch_master_2388 branch March 30, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants