Spring MVC 4.0 json post

1. $json POST, data: JSON.stringify(params)

2. contentType: application/json


3.controller  method.POST   

4. @RequestBody

5. VO  前端中的参数必须要全部在VO中定义,否则报错400 Bad Request

支持对象,前端 a: {"aa" : 'cc'}

后台转成linkedHashMap

你可能感兴趣的:(Spring MVC 4.0 json post)