| | |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * Created by vincent on 2019-07-30 |
| | |
| | | @RequestMapping("/") |
| | | public void index(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/index1.html"); |
| | | response.sendRedirect(contextPath+"/views/index.html"); |
| | | } catch (Exception ex){ |
| | | ex.printStackTrace(); |
| | | } |
| | |
| | | public void login(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/login.html"); |
| | | } catch (Exception ex){ |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/control") |
| | | public void control(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/control.html"); |
| | | } catch (Exception ex){ |
| | | ex.printStackTrace(); |
| | | } |