application/json和application/x-www-form-urlencoded 使用spring接收参数
application/x-www-form-urlencoded 参数格式为键值对字符串 eg:a=1&b=2&c=3
springmvc 可以使用@RequestParam接收参数 eg:@RequestParam(value=”a”) String a;
数组格式参数 eg:a=1&a=2&a=3或者 a=[1,2,3] 可以使用@RequestParam接收参数 eg:@RequestParam(value=”a”) Integer[] a;
application/json 参数格式为json字符串 eg:{“types”:[4,5,6],”uname”:xh}
springmvc 可以使用@RequestBody 接收参数 eg:@RequestBody Map