Fork me on GitHub
摘要: 废话少说,给你们看代码: //provide的controller @ResponseBody @RequestMapping(value = "details",method = RequestMethod.GET) public PageInfo<Detail> queryByTitle(@Re 阅读全文
posted @ 2020-02-18 22:53 威威超酷 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 最近使用Spring 的 RestTemplate 工具类请求接口的时候发现参数传递的一个坑,也就是当我们把参数封装在Map里面的时候,Map 的类型选择。 使用RestTemplate post请求的时候主要可以通过三种方式实现 1、调用postForObject方法 2、使用postForEnt 阅读全文
posted @ 2020-02-18 14:55 威威超酷 阅读(21774) 评论(4) 推荐(7) 编辑