3.响应
3.1 返回静态页面
静态html页面一般放在static目录底下,访问路径是以static文件为根目录
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
</head>
<body>
<h1>我是页面</h1>
</body>
</html>
那么后端如何接收以后请求返回一个页面呢?
直接这样行吗?
@RestController
@RequestMapping("/response")
public class ResponseController {
@RequestMapping("/getIndex")
public String getIndex() {
return