Spring 3 MVC ModelView

Spring 3 MVC: Using @ModelAttribute in Your JSPs

http://krams915.blogspot.com/2010/12/spring-3-mvc-using-modelattribute-in.html

  1. Spring在Controller的函数中return "default", 他将会加载default.jsp文件
  2. model.addAttribute("shopObjectId", avshop.getObjectId());只针对返回页面

你可能感兴趣的:(Spring 3 MVC ModelView)