Http Post with request content type form not working in Spring MVC 3

后端 未结 7 1552
旧时难觅i
旧时难觅i 2020-12-02 11:13

code snippet:

@RequestMapping(method = RequestMethod.POST)//,  headers = \"content-type=application/x-www-form-urlencoded\")
public ModelAndView create(@Req         


        
相关标签:
7条回答
  • 2020-12-02 12:10

    Using JSON worked for me as well, I suppose it makes the JSON interpreter get the data from the body. I was trying to use PUT though, which is a bit harder. You can read my post about it here.

    0 讨论(0)
提交回复
热议问题