Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GGshuoshuo
spring-framework
提交
6517c537
S
spring-framework
项目概览
GGshuoshuo
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6517c537
编写于
12月 08, 2016
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Consistent use of "URI variables" terminology
Issue: SPR-14969
上级
11ff03ed
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
src/asciidoc/integration.adoc
src/asciidoc/integration.adoc
+10
-10
未找到文件。
src/asciidoc/integration.adoc
浏览文件 @
6517c537
...
...
@@ -1003,21 +1003,21 @@ RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
| HEAD
| {api-spring-framework}/web/client/RestTemplate.html#headForHeaders(String,%20Object...)[headForHeaders(String
url, String... ur
l
Variables)]
url, String... ur
i
Variables)]
| OPTIONS
| {api-spring-framework}/web/client/RestTemplate.html#optionsForAllow(String,%20Object...)[optionsForAllow(String
url, String... ur
l
Variables)]
url, String... ur
i
Variables)]
| POST
| {api-spring-framework}/web/client/RestTemplate.html#postForLocation(String,%20Object,%20Object...)[postForLocation(String
url, Object request, String... ur
l
Variables)]
url, Object request, String... ur
i
Variables)]
{api-spring-framework}/web/client/RestTemplate.html#postForObject(java.lang.String,%20java.lang.Object,%20java.lang.Class,%20java.lang.String...)[postForObject(String
url, Object request, Class
<T>
responseType, String... uriVariables)]
| PUT
| {api-spring-framework}/web/client/RestTemplate.html#put(String,%20Object,%20Object...)[put(String
url, Object request, String...ur
l
Variables)]
url, Object request, String...ur
i
Variables)]
| PATCH and others
| {api-spring-framework}/web/client/RestTemplate.html#exchange(java.lang.String,%20org.springframework.http.HttpMethod,%20org.springframework.http.HttpEntity,%20java.lang.Class,%20java.lang.Object...)[exchange]
...
...
@@ -1052,8 +1052,8 @@ template are `ByteArrayHttpMessageConverter`, `StringHttpMessageConverter`,
defaults using the `messageConverters()` bean property as would be required if using the
`MarshallingHttpMessageConverter` or `MappingJackson2HttpMessageConverter`.
Each method takes URI template arguments in two forms, either as a `String`
variable
length argument or a `Map
<String
,
String
>
`. For example,
Each method takes URI template arguments in two forms, either as a `String`
variable-
length argument or a `Map
<String
,
String
>
`. For example,
[source,java,indent=0]
[subs="verbatim,quotes"]
...
...
@@ -1062,7 +1062,7 @@ length argument or a `Map<String,String>`. For example,
"http://example.com/hotels/{hotel}/bookings/{booking}", String.class,"42", "21");
----
using variable
length arguments and
using variable
-
length arguments and
[source,java,indent=0]
[subs="verbatim,quotes"]
...
...
@@ -1135,9 +1135,9 @@ method is invoked.
[subs="verbatim,quotes"]
----
public
<T>
T execute(String url, HttpMethod method, RequestCallback requestCallback,
ResponseExtractor
<T>
responseExtractor, String... ur
l
Variables)
ResponseExtractor
<T>
responseExtractor, String... ur
i
Variables)
// also has an overload with ur
l
Variables as a Map
<String
,
String
>
.
// also has an overload with ur
i
Variables as a Map
<String
,
String
>
.
----
The `RequestCallback` interface is defined as
...
...
@@ -1162,7 +1162,7 @@ other method arguments.
For each of the main HTTP methods, the `RestTemplate` provides variants that either take
a String URI or `java.net.URI` as the first argument.
The String URI variants accept template arguments as a String variable
length argument
The String URI variants accept template arguments as a String variable
-
length argument
or as a `Map
<String
,
String
>
`. They also assume the URL String is not encoded and needs
to be encoded. For example the following:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录