首先新建webproject并添加Tomcat Server
网页主体设置
<%--
Created by IntelliJ IDEA.
User: 25477
Date: 2020/6/29
Time: 10:25
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="/login" method="post">
name:<input name="name" type="text">
password:<input name="password" type="password">
<input type="submit" value="login">
<<