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 @@ + + +
+ +