【发布时间】:2016-08-29 10:44:39
【问题描述】:
是否可以在 Spring 中支持这种 JSON?没有在java中创建新对象,也许是Map?
JSON:
{
"object":"1",
"list":[
{
"id":"1"
}
]
}
Java:
@RequestMapping(method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> getRecipe(@RequestBody What should I write in this place?){
【问题讨论】: