commit
48a8831694
@ -0,0 +1,18 @@
|
|||||||
|
package com.ssm.controller;
|
||||||
|
|
||||||
|
import com.ssm.entity.TingchequyuModel;
|
||||||
|
import com.ssm.entity.User;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("yhgl")
|
||||||
|
public class YhglConreoller {
|
||||||
|
@RequestMapping("add")
|
||||||
|
public ModelAndView yhglConreoller(User user){
|
||||||
|
ModelAndView mv=new ModelAndView("showYhgl");
|
||||||
|
mv.addObject("user", user);
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 11:20
|
||||||
|
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>
|
||||||
|
用户编号:${user.userID}
|
||||||
|
<br>
|
||||||
|
用户姓名:${user.userName}
|
||||||
|
<br>
|
||||||
|
用户密码:${user.userPassword}
|
||||||
|
<br>
|
||||||
|
用户电话:${user.userNumber}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,27 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 5300 PC 二合一
|
||||||
|
Date: 2025/4/3
|
||||||
|
Time: 11:17
|
||||||
|
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>
|
||||||
|
<form action="yhgl/add" method="post">
|
||||||
|
用户编号:<input type="text" name="userID">
|
||||||
|
<br>
|
||||||
|
用户姓名:<input type="text" name="userName">
|
||||||
|
<br>
|
||||||
|
用户密码:<input type="text" name="userPassword">
|
||||||
|
<br>
|
||||||
|
用户电话:<input type="text" name="userNumber">
|
||||||
|
<br>
|
||||||
|
<input type="submit" value="添加">
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in new issue