一、post请求传对象:

(1)传参注解:

public Object getName(@RequestBody Student student){

return  "";

}

注:传参用@RequestBody,而非@RequestParam;

(2)用postman发送请求

二、解决406问题

HTTP Status 406 -

@RequestMapping(value = "/v2/expresscallback/kuaidi100/expressNotify", method = RequestMethod.POST,produces = "text/html;charset=UTF-8")

去掉  ,produces = "text/html;charset=UTF-8" 即可

 

posted on 2019-01-31 17:25  qqzhulu  阅读(1812)  评论(0编辑  收藏  举报