diff --git a/src/com/ssm/controller/CwxxController.java b/src/com/ssm/controller/CwxxController.java new file mode 100644 index 0000000..ca6c8a2 --- /dev/null +++ b/src/com/ssm/controller/CwxxController.java @@ -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; + } +} diff --git a/web/WEB-INF/view/showCwxx.jsp b/web/WEB-INF/view/showCwxx.jsp new file mode 100644 index 0000000..1453ec0 --- /dev/null +++ b/web/WEB-INF/view/showCwxx.jsp @@ -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" %> + + + Title + + +展示车位信息:
+车位编号:${parking.parkingID} +
+车位位置:${parking.parkingLocation} +
+车位状态:${parking.parkingStatus} +
+收费标准:${parking.parkingFee} + + + + diff --git a/web/addCwxx.jsp b/web/addCwxx.jsp new file mode 100644 index 0000000..c82fb74 --- /dev/null +++ b/web/addCwxx.jsp @@ -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" %> + + + 添加车位信息 + + +
+ 车位编号: +
+ 车位位置: +
+ 车位状态: +
+ 收费标准: +
+ +
+ +