功能: 主页显示商品; 所有蛋糕商高考满分是多少品展示,可进行商品搜索; 点击商品进入商品详情页,具有立即购买功能,可增减购买商品数量亦可手动输入,热销商品展示。 立即购买进入确认订单页面,可选择已经添加的地址,亦可新增地址。 可选择购买哪些商高中语文必修一品,可删除不需要的商品。 点击结算进入确认订单页面,确认后提交订单。后台管理:(修改密码等),商品管理(商品批量添加、上下架等),订单管理。
jdk1.8 + tomcat8.5 + mysql + eclispe(梯形的面积计算intellij idea,eclispe,myeclispe,sts都支持)
jsp +springboot+ springmvc + mybatis + thymeleaf + ftp+ javascript + jquery + ajax + maven等等
登录控制层:
@webrvlet(name = "ur_login",urlpatterns = "/ur_login")public class urloginrvlet extends httprvlet { private urrvice urvice = new urrvice(); protected void dopost(httprvletrequest request, httprvletrespon respon) throws rvletexception, ioexception { string ue = request.getparameter("ue"); string password = request.getparameter("password"); ur ur = urvice.login(ue, password); if(ur==null) { request.tattribute("failmsg", "用户名、邮箱或者密码错误,请重新登录!"); request.getrequestdispatcher("/ur_login.jsp").forward(request, respon); }el { request.getssion().tattribute("ur", ur); request.getrequestdispatcher("/ur_center.jsp").forward(request, respon); } } protected void doget(httprvletrequest request, httprvletrespon respon) throws rvletexception, ioexception { }}
商品信息列表:
@webrvlet(name = "goods_list",urlpatterns = "/goods_list")public class goodslistrvlet extends httprvlet { private goodsrvice grvice=new goodsrvice(); private typervice trvice=new typervice(); protected void dopost(httprvletrequest request, httprvletrespon respon) throws rvletexception, ioexception { } protected void doget(httprvletrequest request, httprvletrespon respon) throws rvletexception, ioexception { int id=0; if(request.getparameter("typeid")!=null) { id=integer.parint(request.getparameter("typeid")); } int pagenumber=1; if(request.getparameter("pagenumber")!=null) { try { pagenumber=integer.parint(request.getparameter("pagenumber")); } catch (exception e) { } } type t=null; if(id!=0) { t=trvice.lecttypenamebyid(id); } request.tbe的所有形式attribute("t",t); //list<goods> list=grvice.lectgoodsbytypeid(id,1,8); //request.tattribute("goodslist",list); if(pagenumber<=0) pagenumber=1; page p=grvice.lectpagebytypeid(id,pagenumber); if(p.gettotalpage()==0) { p.ttotalpage(1); p.tpagenumber(1); } el { if(pagenumber>=p.gettotalpage()+1) { p=grvice.lectpagebytypeid(id,p.gettotalpage()); } } request.tattribute("p",p); request.tattribute("id",string.valueof(id)); request.getrequestdispatcher("/goods_list.jsp").forward(request,respon); }}
管理员订单服务类:
@webrvlet(name = "admin_order_list",urlpatterns = "/admin/order_list")public class adminorderlistrvlet extends httprvlet { private orderrvice orvice = new orderrvice(); /** * @e httprvlet#doget(httprvletrequest request, httprvletrespon respon) */ protected void doget(httprvletrequest request, httprvletrespon respon) throws rvletex讲故事比赛ception, ioexception { int status = 0; if(request.getparameter("status") != null) { status=integer.parint(request.getparameter("status") ) ; } request.tattribute("status", status); int pagenumber = 1; if(request.getparameter("pagenumber") != null) { try { pagenumber=integer.parint(request.getparameter("pagenumber") ) ; } catch (exception e) { } } if(pagenumber<=0) pagenumber=1; page p = orvice.getorderpage(status,pagenumber); if(p.gettotalpage()==0) { p.ttotalpage(1); p.tpagenumber(1); } el { if(pagenumber>=p.gettotalpage()+1) { p = orvice.getorderpage(status,pagenumber); } } request.tattribute("p", p); request.getrequestdispatcher("/admin/order_list.jsp").forward(request, respon); }}
到此这篇关于java毕业设计实战之在线蛋糕销售商城的实现的文章就介绍到这了,更多相关java 在线蛋糕销售商城内容请搜索www.887551.com以前的文章或继续浏览下面的相关文章希望大家以后多多支持www.887551.com!
本文发布于:2023-04-04 18:09:14,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/3a49be794c7ccf82165831c4b6d6450d.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:Java毕业设计实战之在线蛋糕销售商城的实现.doc
本文 PDF 下载地址:Java毕业设计实战之在线蛋糕销售商城的实现.pdf
留言与评论(共有 0 条评论) |