| | |
| | | package com.zy.acs.hex.controller; |
| | | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | |
| | | public class RouterController { |
| | | |
| | | |
| | | |
| | | |
| | | @RequestMapping("/") |
| | | public void index(HttpServletResponse response) { |
| | | try { |
| | | response.sendRedirect( "/views/index.html"); |
| | | response.sendRedirect("/views/index.html"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | |
| | | @RequestMapping("/login") |
| | | public void login(HttpServletResponse response) { |
| | | try { |
| | | response.sendRedirect( "/views/login.html"); |
| | | response.sendRedirect("/views/login.html"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |