1. 前端页面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学生信息管理系统</title>
<style>
body{
font-size: 15px;
}
input[type="text"]{
width: 230px;
height: 30px;
margin: 5px 8px;
}
input[type="submit"]{
background-color: lightblue;
width: 70px;
height: 40px;
color: white;
border: 0px;
font-size: 20px;
}
input[type="button"]{
background-color: lightcoral;
width: 70px;
height: 40px;
color: white;
border: 0px;
font-size: 20px;
}
</style>
</head>
<body>
<h1>学生信息管理系统MIS</h1>
<form method="post" action="http://localhost:8080/stu/add">
<div>
<span>姓名:</span>
<input type="text" placeholder="请输入姓名" name="name"/>
<br />
<span>年龄:</span>
<input type="text" placeholder="请输入年龄" name="age"/>
<div>
<span>性别:</span>
<input type="radio" name="gender" id="" value="1" />男