SpringMVC中的@ModelAttribute和@SessionAttribute注解以及RedirectAttributes总结

一、SpringMVC中使用@ModelAttribute时,注解可放置在方法、方法的参数或者@ModelAttribute与@RequestMapping同时放置在方法上(@ModelAttribute详解) 1.1使用@ModelAttribute注解在方法上 使用@ModelAttribute注解在方法上且无返回值 @ModelAttribute public void before(Mod
相关文章
相关标签/搜索