项目介绍
项目适用于毕设、期末作业
本项目采用SSM+JSP实现 ,数据库使用MySQL。 项目只完成了一部分,大家可以进行扩展开发
login.jsp
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2019/4/9
Time: 10:24
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>南航售票系统</title>
<link rel="stylesheet" href="../static/bootstrap-3.3.5-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/css/login.css">
</head>
<body>
<div class="toptitle">
<span> 欢迎登陆</span>
</div>
<div class="cont">
<div class="login">
<span>请先登录 <a href="http://localhost:8080/views/regist.jsp"> or 注册</a></span>
<form class="form-horizontal" action="${pageContext.request.contextPath}/user/login.do" method="post">
<div class="form-group">
<div class="col-sm-10 inputlogin">
<input type="text" class="form-control" id="inputmail3" placeholder="用户名" name="username">
</div>
</div>
<div class="form-group">
<div class="col-sm-10 inputlogin">
<input type="password" class="form-control" id="inputPassword3" placeholder="登录密码" name="password">
</div>
</div>
<div class="form-group">
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-danger btn-block ">
登录</button>
</div>
</div>
</form>
</div>
</div>
<div class="footer">
法律声明 |联系我们 |使用条款 |隐私保护 |版权信息 |营业执照 |星盟会展 |人力资源| 集团连接:
</div>
<script src="../static/js/jquery-1.11.0.js"></script>
<script src="../static/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
</body>
</html>
USER表
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`uid` varchar(11) COLLATE utf8_bin NOT NULL,
`uname` varchar(31) COLLATE utf8_bin NOT NULL,
`psd` varchar(31) COLLATE utf8_bin NOT NULL,
`sex` varchar(11) COLLATE utf8_bin DEFAULT NULL,
`age` int(4) DEFAULT NULL,
`adress` varchar(31) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
功能截图
下载地址
https://download.csdn.net/download/rubeson/87523179