package com.fzzy.web; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; /** * 主页入口 */ @Controller @RequestMapping public class HomeController { @RequestMapping("/") public ModelAndView index() { ModelAndView view = new ModelAndView(); view.setViewName("home/home"); return view; } /** * 后台管理主页面 * * @return */ @RequestMapping("/home") public ModelAndView home( @RequestParam(name = "tag", required = false) String tag) { ModelAndView view = new ModelAndView(); view.setViewName("home/home"); return view; } /** * 后台管理主页面 * * @return */ @RequestMapping("/home2") public ModelAndView home2( @RequestParam(name = "tag", required = false) String tag) { ModelAndView view = new ModelAndView(); view.setViewName("home/home2"); return view; } /** * 后台管理主页面-武汉军粮省平台 * * @return */ @RequestMapping("/home-whjl") public ModelAndView homeWhjl( @RequestParam(name = "tag", required = false) String tag) { ModelAndView view = new ModelAndView(); view.setViewName("home/home-whjl"); return view; } }