如何阅读Spring MVC中返回的API响应正文?

时间:2019-02-14 08:05:30

标签: spring spring-mvc

@PostMapping("/retrieve")
@Timed

public ResponseEntity<String> updateColumn(@RequestBody List<RequestDTO> updates) 
{

// The request parameter in the RequestDTO contains id,name,age.
// The database table has five columns consisting id, name, age, phone, and email

// The API returns the value for both phone and email in JSON format. My task here is to update the columns(phone and email that was initially null) in the Table By ID. 

// how do i grab the returned values ( email and phone) from the api response and update it by id from the requestbody?



}

0 个答案:

没有答案