SpringMVC中的@ModelAttribute和@SessionAttribute註解以及RedirectAttributes總結

一、SpringMVC中使用@ModelAttribute時,註解可放置在方法、方法的參數或者@ModelAttribute與@RequestMapping同時放置在方法上(@ModelAttribute詳解) 1.1使用@ModelAttribute註解在方法上 使用@ModelAttribute註解在方法上且無返回值 @ModelAttribute public void before(Mod
相關文章
相關標籤/搜索