New file |
| | |
| | | package com.whyc.controller; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | | @Controller |
| | | public class IndexController { |
| | | |
| | | @RequestMapping("/") |
| | | public void index(HttpServletResponse response, HttpServletRequest request){ |
| | | try { |
| | | response.sendRedirect("/cad/index.html?n="+System.currentTimeMillis()); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | } |