- @RequestMapping(value = "index.html", method = { RequestMethod.GET })
- public String index() {
- return "redirect:/web/login.html";
- }
- @RequestMapping(value = "/web/login.html", method = { RequestMethod.GET })
- public ModelAndView forwardLogin(LoginVO login, HttpSession session) throws Exception {
- OnlineUser onlineUser = SessionUtils.getAccount(session);
- if (onlineUser == null) {
- return new ModelAndView("pages/login/init");
- }
- return new ModelAndView("redirect:/dashboard");
- }
jsp重新定向的两种写法
最新推荐文章于 2022-12-20 10:04:36 发布