├── src
└── main
│ ├── webapp
│ ├── index.jsp
│ └── WEB-INF
│ │ ├── jsp
│ │ ├── include
│ │ │ ├── fore
│ │ │ │ ├── registerSuccessPage.jsp
│ │ │ │ ├── home
│ │ │ │ │ ├── homePage.jsp
│ │ │ │ │ ├── categoryMenu.jsp
│ │ │ │ │ ├── productsAsideCategorys.jsp
│ │ │ │ │ ├── carousel.jsp
│ │ │ │ │ ├── homepageCategoryProducts.jsp
│ │ │ │ │ └── categoryAndcarousel.jsp
│ │ │ │ ├── searchResultPage.jsp
│ │ │ │ ├── search.jsp
│ │ │ │ ├── top.jsp
│ │ │ │ ├── simpleSearch.jsp
│ │ │ │ ├── productsBySearch.jsp
│ │ │ │ ├── modal.jsp
│ │ │ │ ├── loginPage.jsp
│ │ │ │ ├── header.jsp
│ │ │ │ ├── registerPage.jsp
│ │ │ │ └── footer.jsp
│ │ │ ├── cart
│ │ │ │ ├── orderConfirmedPage.jsp
│ │ │ │ ├── alipayPage.jsp
│ │ │ │ ├── payedPage.jsp
│ │ │ │ ├── confirmPayPage.jsp
│ │ │ │ └── reviewPage.jsp
│ │ │ ├── category
│ │ │ │ ├── categoryPage.jsp
│ │ │ │ ├── productsByCategory.jsp
│ │ │ │ └── sortBar.jsp
│ │ │ └── product
│ │ │ │ ├── productPage.jsp
│ │ │ │ ├── productDetail.jsp
│ │ │ │ └── productReview.jsp
│ │ ├── fore
│ │ │ ├── buy.jsp
│ │ │ ├── alipay.jsp
│ │ │ ├── login.jsp
│ │ │ ├── home.jsp
│ │ │ ├── cart.jsp
│ │ │ ├── payed.jsp
│ │ │ ├── bought.jsp
│ │ │ ├── category.jsp
│ │ │ ├── confirmPay.jsp
│ │ │ ├── product.jsp
│ │ │ ├── orderConfirmed.jsp
│ │ │ ├── registerSuccess.jsp
│ │ │ ├── register.jsp
│ │ │ ├── review.jsp
│ │ │ └── searchResult.jsp
│ │ └── admin
│ │ │ ├── listUser.jsp
│ │ │ ├── editProperty.jsp
│ │ │ ├── editCategory.jsp
│ │ │ ├── editPropertyValue.jsp
│ │ │ ├── listProperty.jsp
│ │ │ ├── editProduct.jsp
│ │ │ ├── listCategory.jsp
│ │ │ ├── listOrder.jsp
│ │ │ ├── listProduct.jsp
│ │ │ └── listProductImage.jsp
│ │ └── web.xml
│ ├── resources
│ ├── jdbc.properties
│ ├── log4j.properties
│ ├── springMVC.xml
│ ├── applicationContext.xml
│ └── mapper
│ │ └── CategoryMapper.xml
│ └── java
│ ├── com
│ └── how2java
│ │ └── tmall
│ │ ├── service
│ │ ├── PropertyService.java
│ │ ├── CategoryService.java
│ │ ├── ReviewService.java
│ │ ├── UserService.java
│ │ ├── PropertyValueService.java
│ │ ├── ProductImageService.java
│ │ ├── OrderItemService.java
│ │ ├── OrderService.java
│ │ ├── ProductService.java
│ │ └── impl
│ │ │ ├── CategoryServiceImpl.java
│ │ │ ├── PropertyServiceImpl.java
│ │ │ ├── ProductImageServiceImpl.java
│ │ │ ├── ReviewServiceImpl.java
│ │ │ ├── UserServiceImpl.java
│ │ │ ├── PropertyValueServiceImpl.java
│ │ │ ├── OrderServiceImpl.java
│ │ │ ├── OrderItemServiceImpl.java
│ │ │ └── ProductServiceImpl.java
│ │ ├── util
│ │ ├── UploadedImageFile.java
│ │ ├── OverIsMergeablePlugin.java
│ │ ├── MybatisGenerator.java
│ │ ├── ImageUtil.java
│ │ └── Page.java
│ │ ├── mapper
│ │ ├── UserMapper.java
│ │ ├── OrderMapper.java
│ │ ├── ReviewMapper.java
│ │ ├── ProductMapper.java
│ │ ├── CategoryMapper.java
│ │ ├── PropertyMapper.java
│ │ ├── OrderItemMapper.java
│ │ ├── ProductImageMapper.java
│ │ └── PropertyValueMapper.java
│ │ ├── pojo
│ │ ├── ProductImage.java
│ │ ├── Property.java
│ │ ├── Category.java
│ │ ├── PropertyValue.java
│ │ ├── User.java
│ │ ├── OrderItem.java
│ │ ├── Review.java
│ │ ├── Product.java
│ │ └── Order.java
│ │ ├── controller
│ │ ├── PageController.java
│ │ ├── UserController.java
│ │ ├── PropertyValueController.java
│ │ ├── OrderController.java
│ │ ├── PropertyController.java
│ │ ├── ProductController.java
│ │ ├── CategoryController.java
│ │ └── ProductImageController.java
│ │ └── interceptor
│ │ ├── LoginInterceptor.java
│ │ └── OtherInterceptor.java
│ └── tmall
│ └── comparator
│ ├── ProductDateComparator.java
│ ├── ProductPriceComparator.java
│ ├── ProductReviewComparator.java
│ ├── ProductSaleCountComparator.java
│ └── ProductAllComparator.java
├── .idea
├── encodings.xml
├── vcs.xml
├── modules.xml
├── artifacts
│ ├── tmall_ssm_war.xml
│ └── tmall_ssm_war_exploded.xml
├── libraries
│ ├── Maven__jstl_jstl_1_2.xml
│ ├── Maven__junit_junit_3_8_1.xml
│ ├── Maven__log4j_log4j_1_2_16.xml
│ ├── Maven__com_alibaba_druid_1_0_18.xml
│ ├── Maven__org_mybatis_mybatis_3_1_1.xml
│ ├── Maven__aopalliance_aopalliance_1_0.xml
│ ├── Maven__commons_io_commons_io_1_3_2.xml
│ ├── Maven__commons_lang_commons_lang_2_6.xml
│ ├── Maven__org_aspectj_aspectjweaver_1_8_4.xml
│ ├── Maven__org_mybatis_mybatis_spring_1_2_3.xml
│ ├── Maven__com_github_jsqlparser_jsqlparser_1_0.xml
│ ├── Maven__commons_logging_commons_logging_1_2.xml
│ ├── Maven__mysql_mysql_connector_java_5_1_6.xml
│ ├── Maven__javax_servlet_javax_servlet_api_3_1_0.xml
│ ├── Maven__com_github_pagehelper_pagehelper_5_1_2_beta.xml
│ ├── Maven__org_springframework_spring_tx_4_1_3_RELEASE.xml
│ ├── Maven__commons_fileupload_commons_fileupload_1_2_1.xml
│ ├── Maven__org_springframework_spring_aop_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_web_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_core_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_jdbc_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_test_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_beans_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_webmvc_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_aspects_4_1_3_RELEASE.xml
│ ├── Maven__org_springframework_spring_context_4_1_3_RELEASE.xml
│ ├── Maven__org_mybatis_generator_mybatis_generator_core_1_3_5.xml
│ └── Maven__org_springframework_spring_expression_4_1_3_RELEASE.xml
├── misc.xml
├── compiler.xml
└── inspectionProfiles
│ └── Project_Default.xml
├── README.md
└── tmall_ssm.iml
/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 | <%
2 | response.sendRedirect("forehome");
3 | %>
4 |
--------------------------------------------------------------------------------
/src/main/resources/jdbc.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/huststl/tmall_ssm/HEAD/src/main/resources/jdbc.properties
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 | 恭喜注册成功
9 |
13 | 交易已经成功,卖家将收到您的货款。
14 |
14 | <%@include file="sortBar.jsp"%>
15 | <%@include file="productsByCategory.jsp"%>
16 |
14 |
6 |
7 |
8 |
28 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/include/fore/top.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8" isELIgnored="false"%>
3 |
4 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/main/java/com/how2java/tmall/pojo/Property.java:
--------------------------------------------------------------------------------
1 | package com.how2java.tmall.pojo;
2 |
3 | public class Property {
4 | private Integer id;
5 |
6 | private Integer cid;
7 |
8 | private String name;
9 |
10 | /*非数据库字段*/
11 | private Category category;
12 |
13 | public Category getCategory() {
14 | return category;
15 | }
16 |
17 | public void setCategory(Category category) {
18 | this.category = category;
19 | }
20 | public Integer getId() {
21 | return id;
22 | }
23 |
24 | public void setId(Integer id) {
25 | this.id = id;
26 | }
27 |
28 | public Integer getCid() {
29 | return cid;
30 | }
31 |
32 | public void setCid(Integer cid) {
33 | this.cid = cid;
34 | }
35 |
36 | public String getName() {
37 | return name;
38 | }
39 |
40 | public void setName(String name) {
41 | this.name = name == null ? null : name.trim();
42 | }
43 | }
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/include/fore/simpleSearch.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8" isELIgnored="false"%>
3 |
4 |
7 |
8 |
9 |
29 |
30 |
14 |
15 |
25 | | ID | 25 |用户名称 | 26 |
|---|---|
| ${u.id} | 32 |${u.name} | 33 |
31 |
14 | 您已成功付款
15 |
16 |
39 | 安全提醒:下单后,用QQ给您发送链接办理退款的都是骗子!天猫不存在系统升级,订单异常等问题,谨防假冒客服电话诈骗!
40 |
17 |
18 | ¥
29 |
45 |
46 | | ID | 38 |属性名称 | 39 |编辑 | 40 |删除 | 41 |
|---|---|---|---|
| ${p.id} | 48 |${p.name} | 49 |51 | | 54 | 55 | |
| class="grayColumn" >综合 | 51 |class="grayColumn" >人气 | 52 |class="grayColumn">新品 | 53 |class="grayColumn">销量 | 54 |class="grayColumn">价格 | 55 |
| 61 | | - | 62 |63 | |
60 |
61 | | ID | 34 |图片 | 35 |分类名称 | 36 |属性管理 | 37 |产品管理 | 38 |编辑 | 39 |删除 | 40 |
|---|---|---|---|---|---|---|
| ${c.id} | 47 |![]() |
48 | ${c.name} | 49 | 50 |51 | | 52 | | 53 | | 54 | 55 | |
14 | | 宝贝 | 33 |单价 | 34 |数量 | 35 |商品总价 | 36 |运费 | 37 | 38 ||
|---|---|---|---|---|---|
![]() |
41 | 42 | ${oi.product.name} 43 | | 44 |¥ |
45 | 1 | 46 |¥ |
47 | 快递 : 0.00 | 48 |
| 订单编号: | 62 |${o.orderCode} ![]() |
63 |
| 卖家昵称: | 66 |天猫商铺 | 67 |
| 收货信息: | 70 |${o.address},${o.receiver}, ${o.mobile},${o.post} | 71 |
| 成交时间: | 74 |
| ID | 31 |状态 | 32 |金额 | 33 |商品数量 | 34 |买家名称 | 35 |创建时间 | 36 |支付时间 | 37 |发货时间 | 38 |确认收货时间 | 39 |操作 | 40 |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ${o.id} | 46 |${o.statusDesc} | 47 |¥ |
48 | ${o.totalNumber} | 49 |${o.user.name} | 50 | 51 |
57 |
58 |
59 | |
65 | ||||||||
|
68 |
69 |
70 |
96 |
97 |
|
98 | |||||||||||||

| 价格: | 21 |¥ |
22 |
| 配送 | 25 |快递: 0.00 | 26 |
| 月销量: | 29 |${p.saleCount} 件 | 30 |
35 | 现在查看的是 您所购买商品的信息
36 | 于| 40 | 90 | | 91 |92 | 142 | | 143 |