Html的登录界面
我的Login.html
直接上代码~
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="http://localhost:8080/aaa" method="post">
用户:<input type="text" name="user"><br> 密码:
<input type="password" name="pwd"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
其中,我们要提交表单form,并且使用post方法。之所以使用post方法而不是get方法,考虑到转向url的地址时密码的安全性。