New file |
| | |
| | | package com.whyc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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 |
| | | @Api(tags = "index") |
| | | public class IndexController { |
| | | |
| | | @RequestMapping("/") |
| | | @ApiOperation("默认跳转,无需调用") |
| | | public void index(HttpServletResponse response, HttpServletRequest request){ |
| | | try { |
| | | response.sendRedirect("/fdk/index.html?n="+System.currentTimeMillis()); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | } |