项目类型:SSM项目
项目名称:基于SSM的在线拍卖系统
用户类型:2个角色(管理员+用户)
系统类型:前段网站+后台管理系统
前段技术:html+css+js+jquery+bootstrap
后端技术:SSM(Spring+SpringMVC+Mybatis)
开发工具:Eclipse或者Idea
数据库:Mysql+Navicat
数据库表:6张
适用:软件工程、计算机科学与技术等JAVA课程的设计或实验
项目大致介绍:项目包括前段网站和后台。用户可以发布拍卖,在时间结束后,谁的出价最高就能拍得。
作者介绍:计科,双1流高校毕业的学长
🍅 获取方式:博主的公众号——学长源码
- 关注回复 练习 免费get 教研评教系统(课程设计学习项目)(开源)
- 关注回复 学生 免费get 一套JavaWeb源码(开源)
- 关注回复 ppt 免费get 367套毕设答辩ppt模板
- 关注回复 简历 免费get 200套程序猿简历模板
目录
演示视频
基于SSM的在线拍卖系统-在线拍卖系统毕业设计
前段网站功能介绍
首页(包括拍卖+分类+新闻)
用户注册+登录
物品拍卖
发布拍卖,选择拍卖截止时间和价格
新闻通知
拍卖品分类
个人中心
最近阅读文章
拍卖品管理(发布的+中标的)
管理员端功能介绍
用户管理
新闻管理
新闻发布
拍卖品分类管理
项目结构
数据库表的设计
拍卖表的创建
-- ----------------------------
-- Table structure for t_auction
-- ----------------------------
DROP TABLE IF EXISTS `t_auction`;
CREATE TABLE `t_auction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`au_type` int(11) DEFAULT NULL,
`au_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`au_detail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`au_cover_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`au_init_price` int(10) DEFAULT NULL,
`au_deal_price` int(10) DEFAULT NULL,
`au_init_date` datetime(0) DEFAULT NULL,
`au_deal_date` datetime(0) DEFAULT NULL,
`au_fromuser_id` int(11) DEFAULT NULL,
`au_dealuser_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_auction
-- ----------------------------
INSERT INTO `t_auction` VALUES (15, 27, '宝马7401', '匠心独赋,成就绝尘风华 新BMW 7系耀影特别版 蕴光于形,璨然耀界。新BMW 7系耀影特别版,以灵感双色折射个性辉芒,以独到品味承袭卓然风范,以奢华定制的造诣,独揽稀世风华,成就典藏座驾。', '宝马.jpg', 300000, 0, '2021-11-27 23:57:00', NULL, 11, 0);
INSERT INTO `t_auction` VALUES (16, 27, '大众(进口) 高尔(海外) 2017款 gt concept', '大众(进口) 高尔(海外) 2017款 gt concept 原价350000,现在180000', '大众.jpg', 180000, 190000, '2021-11-27 23:59:00', NULL, 11, 12);
INSERT INTO `t_auction` VALUES (17, 27, '全新别克轿车家族实力升级,买他们就对了!', '全新别克轿车家族实力升级,买他们就对了! 新一代别克君威价值220000', '别克.jpeg', 220000, 230000, '2021-12-04 00:01:00', NULL, 11, 12);
部分代码展示
拦截器设置
// 获取请求的URL
String url = request.getRequestURI();
String contextPath = request.getContextPath();
HttpSession session = request.getSession();
// URL:除了某些特殊请求外,其他的URL都进行拦截控制
if (url.indexOf("/user/toLogin") >= 0 || url.indexOf("/user/toRegister") >= 0
||url.indexOf("/user/doLogin") >= 0 || url.indexOf("/user/doReg") >= 0
||url.indexOf("/user/toIndex")>0 || url.indexOf("/user/checkUserUnique") >= 0
||url.indexOf("/user/doExit")>0 || url.indexOf("/user/totxtShow") >= 0
|| url.indexOf("/user/getSearchTypes") >= 0|| url.indexOf("/user/toGameCom") >= 0
){
return true;
}
// 获取Session
User user = (User) session.getAttribute("USER_SESSION");
// 判断Session中是否有用户数据,如果有,则返回true,继续向下执行
if (user != null) {
return true;
}
/*System.out.println(contextPath);
System.out.println("拦截url:"+url);*/
// 不符合条件的给出提示信息,并转发到登录页面
if(url.indexOf("/admin") > 0) {
if(url.indexOf("/admin/login") > 0 || url.indexOf("/admin/doExit") > 0
|| url.endsWith("/admin"))
return true;
Admin admin = (Admin) session.getAttribute("ADMIN_SESSION");
if(admin != null) return true;
request.setAttribute("msg", "您还没有登录,请先登录!");
//response.sendRedirect(contextPath+"/user/toLogin");
request.getRequestDispatcher("/admin").forward(request, response);
return false;
}
request.setAttribute("msg", "请先登录!");
request.setAttribute("status", "noLogin");
//response.sendRedirect(contextPath+"/user/toLogin");
request.getRequestDispatcher("/user/toIndex").forward(request, response);
return false;
}
@Override