0
나는 PUT이 방법REST : PUT
@RequestMapping(method = RequestMethod.PUT, value = ServicesDictionary.API_DOMAIN_DEMAND + "/{id}", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(value = HttpStatus.OK, reason = "Update successful")
@ResponseBody
@Override
@LogMe("MarketDemandService.PUT.update")
public jsonObject update(@RequestBody @Valid MongoMarketDemand marketDemand, @PathVariable String id) {
//do update
return jsonObject
}
을 구현하고하지만 내가 보는 ResponseEntity를 볼 때 몸이 null를 사용하여 응답 본문의 내용을 반환하는 방법. json 객체를 반환하려면 어떻게해야합니까?