commit
64ef29b837
@ -0,0 +1,18 @@
|
|||||||
|
package com.ssm.controller;
|
||||||
|
import com.ssm.entity.Parking;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("cheweixinxi")
|
||||||
|
public class CheweixinxiController {
|
||||||
|
@RequestMapping("object")
|
||||||
|
public String object(Parking parking){
|
||||||
|
System.out.println("parkingID:"+parking.getParkingID());
|
||||||
|
System.out.println("parkingLocation:"+parking.getParkingLocation());
|
||||||
|
System.out.println("parkingStatus:"+parking.getParkingStatus());
|
||||||
|
System.out.println("parkingFee:"+parking.getParkingFee());
|
||||||
|
return "showCheweixinxi";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.ssm.entity;
|
||||||
|
|
||||||
|
public class Parking {
|
||||||
|
private String parkingID;
|
||||||
|
private String parkingLocation;
|
||||||
|
private String parkingStatus;
|
||||||
|
private String parkingFee;
|
||||||
|
|
||||||
|
public String getParkingID() {
|
||||||
|
return parkingID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParkingID(String parkingID) {
|
||||||
|
this.parkingID = parkingID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParkingLocation() {
|
||||||
|
return parkingLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParkingLocation(String parkingLocation) {
|
||||||
|
this.parkingLocation = parkingLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParkingStatus() {
|
||||||
|
return parkingStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParkingStatus(String parkingStatus) {
|
||||||
|
this.parkingStatus = parkingStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParkingFee() {
|
||||||
|
return parkingFee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParkingFee(String parkingFee) {
|
||||||
|
this.parkingFee = parkingFee;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 16:31
|
||||||
|
To change this template use File | Settings | File Templates.
|
||||||
|
--%>
|
||||||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<head>
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Success!
|
||||||
|
信息已在控制台输出!
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,29 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 16:33
|
||||||
|
To change this template use File | Settings | File Templates.
|
||||||
|
--%>
|
||||||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<head>
|
||||||
|
<title>车位信息</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form action="cheweixinxi/object" method="post">
|
||||||
|
车位编号:<input type="text" name="parkingID">
|
||||||
|
<br>
|
||||||
|
车位位置:<input type="text" name="parkingLocation">
|
||||||
|
<br>
|
||||||
|
车位状态:<input type="text" name="parkingStatus">
|
||||||
|
<br>
|
||||||
|
收费标准:<input type="text" name="parkingFee">
|
||||||
|
<br>
|
||||||
|
<input type="submit" value="添加">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in new issue