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

后端 未结 7 1574
旧时难觅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 11:59

    Using @ModelAttribute is indeed the preferred way to deal with form parameters.

提交回复
热议问题