list = new ArrayList<>();
+ list.add("a");
+ list.add("b");
+ list.add("c");
+
+ return list;
+ }
+}
diff --git a/mvc/src/main/java/cn/bunny/mvc/controller/UseRestController.java b/mvc/src/main/java/cn/bunny/mvc/controller/UseRestController.java
new file mode 100644
index 0000000..b75156e
--- /dev/null
+++ b/mvc/src/main/java/cn/bunny/mvc/controller/UseRestController.java
@@ -0,0 +1,19 @@
+package cn.bunny.mvc.controller;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.servlet.ModelAndView;
+
+@RequestMapping("userRest")
+@RestController
+public class UseRestController {
+
+ @GetMapping("page/test")
+ public ModelAndView test() {
+ ModelAndView modelAndView = new ModelAndView();
+ modelAndView.setViewName("page/test");
+ modelAndView.addObject("message", "这是消息内容");
+ return modelAndView;
+ }
+}
diff --git a/mvc/src/main/resources/static/error/400.html b/mvc/src/main/resources/static/error/400.html
new file mode 100644
index 0000000..beaaf7f
--- /dev/null
+++ b/mvc/src/main/resources/static/error/400.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 400
+
+
+400
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/static/error/404.html b/mvc/src/main/resources/static/error/404.html
new file mode 100644
index 0000000..e5f9d7b
--- /dev/null
+++ b/mvc/src/main/resources/static/error/404.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 404
+
+
+404
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/static/error/500.html b/mvc/src/main/resources/static/error/500.html
new file mode 100644
index 0000000..6071bf4
--- /dev/null
+++ b/mvc/src/main/resources/static/error/500.html
@@ -0,0 +1,64 @@
+
+
+
+
+ 500 - 服务器错误
+
+
+
+
+
+ :'(
+ 服务器开小差啦!管理员正在修理中...
+ 还请阁下静候站点恢复~
+
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/templates/hello.html b/mvc/src/main/resources/templates/hello.html
new file mode 100644
index 0000000..05a8084
--- /dev/null
+++ b/mvc/src/main/resources/templates/hello.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+ hello
+
+
+Hello
+
+ 带参数显示
+
{{ message }}
+ {{count}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/templates/jumpPage.html b/mvc/src/main/resources/templates/jumpPage.html
new file mode 100644
index 0000000..d30c7b7
--- /dev/null
+++ b/mvc/src/main/resources/templates/jumpPage.html
@@ -0,0 +1,10 @@
+
+
+
+
+ jumpPage
+
+
+跳转的页面
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/templates/page/test.html b/mvc/src/main/resources/templates/page/test.html
new file mode 100644
index 0000000..35a78e9
--- /dev/null
+++ b/mvc/src/main/resources/templates/page/test.html
@@ -0,0 +1,11 @@
+
+
+
+
+ 使用RestController返回页面信息
+
+
+使用RestController返回页面信息
+
+
+
\ No newline at end of file
diff --git a/mvc/src/main/resources/templates/user.html b/mvc/src/main/resources/templates/user.html
new file mode 100644
index 0000000..f385631
--- /dev/null
+++ b/mvc/src/main/resources/templates/user.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 测试用户界面
+
+
+哈哈哈1ss
+
+
\ No newline at end of file