实现登录,编写错误码,实现错误码返回json
This commit is contained in:
12
src/main/resources/templates/home.html
Normal file
12
src/main/resources/templates/home.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>主页</title>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<h1>欢迎访问主页</h1>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,6 +5,15 @@
|
||||
<title>登录</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>登录系统</h1>
|
||||
<center>
|
||||
<h1>登录系统</h1>
|
||||
<form action="/cms/login/dologin" method="post">
|
||||
<p>用户名:
|
||||
<input type="text" name="colname"></p>
|
||||
<p>密码:
|
||||
<input type="password" name="colpassword"></p>
|
||||
<input type="submit" value="登录">
|
||||
</center>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user