请求
public void test() {
RestTemplate restTemplate = new RestTemplate();
String jsonParam = "{\"projectId\": 1, \"imageNos\":[\"DN101\", \"DN102\"]}";
String url = "http://localhost:port/image/test?params={param}";
String rsp = restTemplate.getForObject(url, String.class, jsonParam );
}
接受
@GetMapping("/test)
public void test(@RequestParm("params" String params) {
}