通过ajax发送json数组到Springmvc
1. 三个jackson的jar, databind, core, annotations
2.ajax
JSON.stringify(var对象), data转成json字符串.
contentType:'application/json;charset=utf-8'
3. Springmvc
Controller方法中参数(@ResponseBody User[] users)
1. 三个jackson的jar, databind, core, annotations
2.ajax
JSON.stringify(var对象), data转成json字符串.
contentType:'application/json;charset=utf-8'
3. Springmvc
Controller方法中参数(@ResponseBody User[] users)