所有栏目 | 云社区 美国云服务器[国内云主机商]
你的位置:首页 > 云社区 » 正文

resttemplate远程接口调用,传一个map怎么调用map参数?

发布时间:2020-04-15 16:50:59

资讯分类:远程  接口  参数  调用  放在  调用  接口
resttemplate远程接口调用,传一个map怎么调用map参数?

spring rest mvc使用RestTemplate远程接口调用

主要代码如下: 

import java.util.HashMap; 

import java.util.Map; 

import org.springframework.web.client.RestTemplate; 

参数直接放在URL中 String message =restTemplate.getForObjectocalhost:8080/yongbarservice/appstore/appgoods/restTemplate?name=zhaoshijie&id=80 resttemplate远程接口调用,传一个map怎么调用map参数?

spring rest mvc使用RestTemplate远程接口调用import java.util.Map; 参数直接放在URL中 String message =restTemplate.getForObjectocalhost:8080/yongbarservice/appstore/appgoods/restTemplate?name=zhaoshijie&id=80

留言与评论(共有 0 条评论)
   
验证码:
Top