|
|
@@ -0,0 +1,22 @@
|
|
|
+package space.anyi.controller;
|
|
|
+
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @fileName: HelloController
|
|
|
+ * @projectName: SSM_template
|
|
|
+ * @package: space.anyi.controller
|
|
|
+ * @author: 杨逸
|
|
|
+ * @date:2026/4/23 23:04
|
|
|
+ * @description: TODO
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+public class HelloController {
|
|
|
+ @GetMapping("/")
|
|
|
+ public ModelAndView hello(ModelAndView modelAndView){
|
|
|
+ modelAndView.setViewName("index");
|
|
|
+ return modelAndView;
|
|
|
+ }
|
|
|
+}
|