How to do spring request parameter conversion

后端 未结 5 1587
南旧
南旧 2021-02-05 13:36

In a Spring 3 based web (portlet) application I have a controller with a method like this:

@RenderMapping
public ModelAn         


        
5条回答
  •  轮回少年
    2021-02-05 14:06

    i think you need to use something like

    public ModelAndView handleRenderRequest(...,@ModelAttribute("myObject") MyClass myObject)
    

提交回复
热议问题