赞
踩
在Controller中加入@RequestMapping("/")
- @RequestMapping("/")
- public ModelAndView index(@Autowired HttpServletRequest request, Model model) {
- UserModel user = (UserModel) request.getAttribute("plat.user");
- model.addAttribute("user", user);
- return new ModelAndView("platform/index", "index0", model);
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。