parent
9513a815ed
commit
6eb5685873
@ -0,0 +1,13 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
public class FirstController {
|
||||
@RequestMapping("hello")
|
||||
public String hello() {
|
||||
System.out.println("1111");
|
||||
return "showFirst";
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.YuyueModel;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("yuyue")
|
||||
public class YuyueController {
|
||||
|
||||
//对象方式接收车辆预约信息
|
||||
@RequestMapping("add")
|
||||
public String test(YuyueModel yuyue){
|
||||
System.out.println("车辆预约信息:"+yuyue.toString());
|
||||
return "showYuyue";
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>展示入门程序信息</title>
|
||||
</head>
|
||||
<body>
|
||||
Success!
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,20 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>展示商品分类信息</title>
|
||||
</head>
|
||||
<body>
|
||||
Success!
|
||||
<br>
|
||||
区域编号:${tingchequyuInfo.id}
|
||||
<br>
|
||||
区域名称:${tingchequyuInfo.tingchequyuName}
|
||||
<br>
|
||||
车位数量:${tingchequyuInfo.tingchequyuNumber}
|
||||
<br>
|
||||
详情:${tingchequyuInfo.tingchequyuContent}
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,15 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>展示Controller接收及响应数据</title>
|
||||
</head>
|
||||
<body>
|
||||
Success!
|
||||
<br>
|
||||
车位预约信息已在控制台输出!
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,23 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>添加停车区域信息</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="tingchequyu/add" method="post">
|
||||
区域编号:<input type="text" name="id">
|
||||
<br>
|
||||
区域名称:<input type="text" name="tingchequyuName">
|
||||
<br>
|
||||
车位数量:<input type="text" name="tingchequyuNumber">
|
||||
<br>
|
||||
详情:<textarea name="tingchequyuContent" rows="5" cols="35"></textarea>
|
||||
<br>
|
||||
<input type="submit" value="添加">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,42 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>添加车辆预约</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="yuyue/add" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td>预约编号:</td>
|
||||
<td width="20"></td>
|
||||
<td><input type="text" name="id" placeholder="请输入预约编号" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预约用户:</td>
|
||||
<td width="20"></td>
|
||||
<td><input type="text" name="yonghu.username" placeholder="请输入预约用户" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预约区域:</td>
|
||||
<td width="20"></td>
|
||||
<td><input type="text" name="tingchequyu.tingchequyuName" placeholder="请输入预约区域" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预约时间:</td>
|
||||
<td width="20"></td>
|
||||
<td><input type="text" name="insertTime" placeholder="请输入上架日期" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><input type="reset" value="重置"></td>
|
||||
<td></td>
|
||||
<td align="center">
|
||||
<input type="submit" value="添加">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,12 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>入门程序</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="hello">hello world</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue