From 021cdde5efdba7a861731d883be512cc8f32a392 Mon Sep 17 00:00:00 2001 From: Wangyixin <1572093253@qq.com> Date: Wed, 2 Apr 2025 23:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=90=E8=AF=97=E4=BD=9C=E4=B8=9A7=E5=B7=B2?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/web.xml | 1 + .../addYyxt.jsp | 3 +- .../controller/YonghuguanliController.java | 20 ++++++++++ src/com/ssm/entity/User.java | 40 +++++++++++++++++++ web/WEB-INF/view/showYonghuguanli.jsp | 19 +++++++++ web/WEB-INF/web.xml | 1 + web/addYonghuguanli.jsp | 29 ++++++++++++++ web/addYyxt.jsp | 3 +- 8 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 src/com/ssm/controller/YonghuguanliController.java create mode 100644 src/com/ssm/entity/User.java create mode 100644 web/WEB-INF/view/showYonghuguanli.jsp create mode 100644 web/addYonghuguanli.jsp diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/web.xml b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/web.xml index 313ae7c..3f1ae29 100644 --- a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/web.xml +++ b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/web.xml @@ -40,4 +40,5 @@ /* + \ No newline at end of file diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addYyxt.jsp b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addYyxt.jsp index b8b470d..7dc7596 100644 --- a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addYyxt.jsp +++ b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addYyxt.jsp @@ -1,5 +1,4 @@ - - jmn<%-- +<%-- Created by IntelliJ IDEA. User: Wangyixin Date: 2025/4/2 diff --git a/src/com/ssm/controller/YonghuguanliController.java b/src/com/ssm/controller/YonghuguanliController.java new file mode 100644 index 0000000..e971094 --- /dev/null +++ b/src/com/ssm/controller/YonghuguanliController.java @@ -0,0 +1,20 @@ +package com.ssm.controller; +import com.ssm.entity.User; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("yonghuguanli") + +public class YonghuguanliController { + @RequestMapping("object") + public String object(User user){ + System.out.println("userID:"+user.getUserID()); + System.out.println("username:"+user.getUserName()); + System.out.println("userPassword:"+user.getUserPassword()); + System.out.println("usernumber:"+user.getUserNumber()); + return "showYonghuguanli"; + + } + +} diff --git a/src/com/ssm/entity/User.java b/src/com/ssm/entity/User.java new file mode 100644 index 0000000..8624758 --- /dev/null +++ b/src/com/ssm/entity/User.java @@ -0,0 +1,40 @@ +package com.ssm.entity; + +public class User { + private String userID; + private String userName; + private String userPassword; + private String userNumber; + + public String getUserID() { + return userID; + } + + public void setUserID(String userID) { + this.userID = userID; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserPassword() { + return userPassword; + } + + public void setUserPassword(String userPassword) { + this.userPassword = userPassword; + } + + public String getUserNumber() { + return userNumber; + } + + public void setUserNumber(String userNumber) { + this.userNumber = userNumber; + } +} diff --git a/web/WEB-INF/view/showYonghuguanli.jsp b/web/WEB-INF/view/showYonghuguanli.jsp new file mode 100644 index 0000000..f1448e8 --- /dev/null +++ b/web/WEB-INF/view/showYonghuguanli.jsp @@ -0,0 +1,19 @@ +<%-- + Created by IntelliJ IDEA. + User: 5300 PC 二合一 + Date: 2025/4/2 + Time: 19:47 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%> + + + + + Title + + +Success! +信息已在控制台输出! + + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index 313ae7c..1111af7 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -39,5 +39,6 @@ characterEncodingFilter /* + \ No newline at end of file diff --git a/web/addYonghuguanli.jsp b/web/addYonghuguanli.jsp new file mode 100644 index 0000000..e59c609 --- /dev/null +++ b/web/addYonghuguanli.jsp @@ -0,0 +1,29 @@ +<%-- + Created by IntelliJ IDEA. + User: 5300 PC 二合一 + Date: 2025/4/2 + Time: 19:41 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + 用户管理 + + +
+ 用户编号: +
+ 用户姓名: +
+ 用户密码: +
+ 用户电话: +
+ +
+ + + diff --git a/web/addYyxt.jsp b/web/addYyxt.jsp index b8b470d..7dc7596 100644 --- a/web/addYyxt.jsp +++ b/web/addYyxt.jsp @@ -1,5 +1,4 @@ - - jmn<%-- +<%-- Created by IntelliJ IDEA. User: Wangyixin Date: 2025/4/2