提交 82888454 authored 作者: inroi's avatar inroi

完成代码

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