提交 33a2642e authored 作者: inroi's avatar inroi

完成代码

上级 82888454
...@@ -2,15 +2,13 @@ package com.shr.controller; ...@@ -2,15 +2,13 @@ package com.shr.controller;
import java.util.Map; import java.util.Map;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping("/index")
public class IndexController { public class IndexController {
@GetMapping("/") @RequestMapping("/index")
public String index(Map<String, Object> model) { public String index(Map<String, Object> model) {
return "index"; return "index";
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论