package com.luqj.front; import com.alibaba.fastjson.JSONObject; import io.swagger.annotations.Api; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; @Controller @Api(tags = "默认页", description = "默认页") public class IndexController { @GetMapping(value = "/backend") public ModelAndView home(HttpServletRequest req) { ModelAndView mv = new ModelAndView(); mv.setViewName("/index.html"); return mv; } }