GET:
使用@RequestParam
@RequestMapping(path = "/get", method = RequestMethod.GET)
public void get(@RequestParam Map<String,Object> map)
POST:
使用@RequestBody
@RequestMapping(path = "/post", method = RequestMethod.POST)
public void post(@RequestBody Map<String,Object> map)
前端请求设置
'Content-Type': 'application/json'