日期:2014-05-17 浏览次数:20671 次
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" p:prefix="WEB-INF/view" p:suffix=".jsp"></bean>
@RequestMapping(value = "/login/{user}", method = RequestMethod.GET) public ModelAndView myMethod(HttpServletRequest request, HttpServletResponse response, @PathVariable("user") String user, ModelMap modelMap) throws Exception { modelMap.put("loginuser", user); return new ModelAndView("/login/hello", modelMap); }