commit
82783ae77d
@ -0,0 +1,16 @@
|
|||||||
|
package com.ssm.controller;
|
||||||
|
import com.ssm.entity.Parking;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("cwxx")
|
||||||
|
public class CwxxController {
|
||||||
|
@RequestMapping("add")
|
||||||
|
public ModelAndView cwxxConreoller(Parking parking){
|
||||||
|
ModelAndView mv=new ModelAndView("showCwxx");
|
||||||
|
mv.addObject("parking", parking);
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 16:56
|
||||||
|
To change this template use File | Settings | File Templates.
|
||||||
|
--%>
|
||||||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
展示车位信息:<br>
|
||||||
|
车位编号:${parking.parkingID}
|
||||||
|
<br>
|
||||||
|
车位位置:${parking.parkingLocation}
|
||||||
|
<br>
|
||||||
|
车位状态:${parking.parkingStatus}
|
||||||
|
<br>
|
||||||
|
收费标准:${parking.parkingFee}
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,26 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 16:59
|
||||||
|
To change this template use File | Settings | File Templates.
|
||||||
|
--%>
|
||||||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>添加车位信息</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form action="cwxx/add" 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