resttemplate的post请求参数 httpclient和resttemplate哪个性能好些?

httpclient和resttemplate哪个性能好些? restTemplate.postForObject两种方法1restTemplate.postForObject(url,空String

httpclient和resttemplate哪个性能好些?

restTemplate.postForObject两种方法

1restTemplate.postForObject(url,空String.class类,params)

示例:

UriTemplate template=new UriTemplate(“http://example.com/hotels/{Hotel}/books/{booking}”

map

spring rest MVC使用restemplate远程接口调用主代码如下:导入java.util.HashMap文件导入java.util.Map文件导入org.springframework.web网站. client.rest模板参数直接放置在URL字符串消息=restemplate.getForObjectocalhost:8080/youngbarservice/appstore/appgoods/restemplate?name=zhaoshijie&id=80”,str参数使用map传递map