|
@@ -0,0 +1,24 @@
|
|
|
+package com.qx.didi.controller;
|
|
|
+
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.IOException;
|
|
|
+
|
|
|
+@Controller
|
|
|
+@Slf4j
|
|
|
+@RequestMapping("/")
|
|
|
+public class IndexController {
|
|
|
+
|
|
|
+ @GetMapping("/")
|
|
|
+ public void index(HttpServletResponse response) {
|
|
|
+ try {
|
|
|
+ response.sendRedirect("/index.html");
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|