超市管理系统

上传者: 43549621 | 上传时间: 2020-01-03 11:40:34 | 文件大小: 233KB | 文件类型: rar
超市管理系统: 1.数据库设计: smbms_user 超市的工作人员 每个工作人员都有角色 smbms_role 人员的角色 3种: 系统管理员: 经理 : 普通员工: smbms_bill 超市账单 账单属于某个供应商 smbms_provider 供应商 2.项目框架设计: myeclipse+mysql+java web(servlet|jsp) 3.开发模式: MVC开发模式 注意: (1)创建项目与数据库时,采用UTF-8的编码. EncodingFilter (2)项目搭建 smbms src source folder com.hfxt.entity com.hfxt.controller UserServlet ProviderServlet BillServlet ... com.hfxt.filter com.hfxt.listener com.hfxt.service com.hfxt.service.impl com.hfxt.dao com.hfxt.dao.impl com.hfxt.util ... resources source folder db.properties test source folder WebRoot/ commom/存放公共页面 css/ img/ js/ /WEB-INF/admin(存放jsp) (3)jsp:建议放在WEB-INF下 html-》jsp:后缀名+page头部声明 jsp中的资源引用: 绝对路径: ①${pageContext.request.contextPath }/css/style.css 或者 ② ③ 可以使用${path}来获取 相对路径时相对于url(不建议) 统一: /admin/user/* /admin/provider/* ... /admin/* 如何处理登录问题? ①方式1 login.jsp放在WEB-INF /admin/user/toLogin->login.jsp /admin/user/login->点击登录时的处理 在过滤器中,if(url.indexOf("/toLogin") != -1 ||...){ //放行 chain.doFilter(request,response); return; } ②方式2 单独放置登录页面 login.html login.jsp 4.项目周期 1周时间 项目答辩时间: 5.项目分析: (1)登录功能: ①根据用户名查询数据库, 将用户输入的密码加密, 与数据库查询出的密码进行比对. 加密方法: String p2 = Base64.encode(p.getBytes() );//Base64方式加密 或者 String password = DigestUtils.md5Hex(value);//MD5方式加密 ②登录 public User login(String us,String ps){} public String login(String username){ //根据username查询密码p1 | 根据p1和输入的密码p1比较 | ------------------- |后台 | 相等,登录 否则,登录失败 } (2)控制器使用Servlet分发请求控制,实现一个Servlet处理多个请求 (3)根据用户角色id,来判

文件下载

资源详情

[{"title":"( 42 个子文件 233KB ) 超市管理系统","children":[{"title":"项目-超市管理系统-J72","children":[{"title":"项目功能分析最新.txt <span style='color:#111;'> 4.48KB </span>","children":null,"spread":false},{"title":"sql脚本","children":[{"title":"smbms_db.sql <span style='color:#111;'> 15.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"项目搭建","children":null,"spread":false},{"title":"超市管理系统素材","children":[{"title":"password.jsp <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"userAdd.jsp <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false},{"title":"providerList.jsp <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"userView.jsp <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"providerAdd.jsp <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"welcome.jsp <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"img","children":[{"title":"formBg.png <span style='color:#111;'> 40.94KB </span>","children":null,"spread":false},{"title":"schu.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"time.png <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"yh.png <span style='color:#111;'> 5.24KB </span>","children":null,"spread":false},{"title":"home.png <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false},{"title":"tc.png <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"leftBg.png <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"tianjia.png <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"mm.png <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"zd.png <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"clock.jpg <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"xiugai.png <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"login_img.png <span style='color:#111;'> 8.70KB </span>","children":null,"spread":false},{"title":"search.png <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"login_bg.jpg <span style='color:#111;'> 44.55KB </span>","children":null,"spread":false},{"title":"loginBg.jpg <span style='color:#111;'> 17.96KB </span>","children":null,"spread":false},{"title":"gys.png <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"read.png <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"buy.png <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"billView.jsp <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"billAdd.jsp <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"billList.jsp <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"js","children":[{"title":"time.js <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"js.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"jquery.js <span style='color:#111;'> 266.80KB </span>","children":null,"spread":false}],"spread":false},{"title":"providerView.jsp <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"login.jsp <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"providerUpdate.jsp <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"css","children":[{"title":"public.css <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"style.css <span style='color:#111;'> 8.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"userList.jsp <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"public.jsp <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"userUpdate.jsp <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"billUpdate.jsp <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明