From b1db4a4944ff9f7a9231e4448af41808051bcb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E5=98=89=E9=98=B3?= Date: Mon, 26 Feb 2018 10:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?404=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fjy/spring/controller/NavController.java | 5 +++++ src/main/resources/static/js/user.js | 2 +- src/main/resources/templates/error.html | 13 +++++++++++++ src/main/resources/templates/index.html | 14 -------------- 4 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 src/main/resources/templates/error.html delete mode 100644 src/main/resources/templates/index.html diff --git a/src/main/java/com/fjy/spring/controller/NavController.java b/src/main/java/com/fjy/spring/controller/NavController.java index a4d228b..3dec5cc 100644 --- a/src/main/java/com/fjy/spring/controller/NavController.java +++ b/src/main/java/com/fjy/spring/controller/NavController.java @@ -73,4 +73,9 @@ public class NavController { public String toUserPage(){ return "/home/user"; } + + @GetMapping(value = {"/error"}) + public String toErrorPage(){ + return "/error"; + } } diff --git a/src/main/resources/static/js/user.js b/src/main/resources/static/js/user.js index d7880eb..ad8dc7c 100644 --- a/src/main/resources/static/js/user.js +++ b/src/main/resources/static/js/user.js @@ -70,7 +70,7 @@ var Main = { } }; return { - activeIndex: '2-1', + activeIndex: '2', ruleForm2: { coluserid:'', colname: '', diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html new file mode 100644 index 0000000..3f82359 --- /dev/null +++ b/src/main/resources/templates/error.html @@ -0,0 +1,13 @@ + + + + + 错误 + + +
+

页面不存在

+ 主页 +
+ + \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html deleted file mode 100644 index b010eca..0000000 --- a/src/main/resources/templates/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - 导航 - - -单文件上传

-多文件上传

-登录

-注册

- - - \ No newline at end of file