Is ModelMap only new name in Spring 3 for ModelAndView ?
Is functionality changing in Spring 3?
Consider this code in a Spring 3 application using ModelMap :
@RequestMapping(value = "/order", method = RequestMethod.GET) public final String setup(final ModelMap model) { model.addAttribute(ORDER, new Order()); return "setup"; }
I would like to know what the equivalent use of ModelAndView here ModelAndView be in an older Spring application? Would it just require a name change from ModelMap to ModelAndView to make this work in Spring 2.5?
java spring spring-mvc
pnut butter Jul 27 2018-10-10T00: 00Z
source share