From 7c49dc4b862e022f55f1e0c6e5c5f9ea0ff5e46f Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Sun, 13 Jul 2025 21:16:13 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/spring/step2/controller/WebController.java | 6 +++--- .../step-2/src/main/resources/templates/index.html | 2 +- .../main/resources/templates/{login.html => loginPage.html} | 0 .../resources/templates/{user/index.html => userPage.html} | 5 +---- 4 files changed, 5 insertions(+), 8 deletions(-) rename spring-security/step-2/src/main/resources/templates/{login.html => loginPage.html} (100%) rename spring-security/step-2/src/main/resources/templates/{user/index.html => userPage.html} (97%) diff --git a/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java b/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java index ac4a01d..2d4d70a 100644 --- a/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java +++ b/spring-security/step-2/src/main/java/com/spring/step2/controller/WebController.java @@ -11,13 +11,13 @@ public class WebController { return "index"; } - @GetMapping("/login-page") + @GetMapping("/login") public String showLoginPage() { - return "login"; + return "loginPage"; } @GetMapping("/user") public String showUserPage() { - return "user/index"; + return "userPage"; } } diff --git a/spring-security/step-2/src/main/resources/templates/index.html b/spring-security/step-2/src/main/resources/templates/index.html index ae1071b..ded9c55 100644 --- a/spring-security/step-2/src/main/resources/templates/index.html +++ b/spring-security/step-2/src/main/resources/templates/index.html @@ -382,7 +382,7 @@