package com.fgkj.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @Description : index * @date 2020/10/15 **/ import javax.annotation.Resource; @RequestMapping @Controller @Api(tags = "index接口") @Deprecated public class IndexController { @GetMapping("/") @ApiOperation(notes = "",value="index") public String index(HttpServletRequest request, HttpServletResponse response){ return "index"; /*try { response.sendRedirect("index.html"); } catch (IOException e) { e.printStackTrace(); }*/ } }