Skip to content

Commit b8ce17d

Browse files
committed
first commit
0 parents  commit b8ce17d

File tree

298 files changed

+22790
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+22790
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
target/
3+
*.iml

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# 小小商城系统 - SSM版
2+
3+
练手JavaWEB项目,本版本为SSM版(完整版)。本项目实现了通用Mapper,免写SQL,全自动处理关联查询。通过拦截器实现了方法级粒度的鉴权,通过AOP实现了参数校验。通过合理配置MyBatis Generator和自定义插件,灵活隔离手写代码和自动生成代码。实现了 BaseService 类对 Service层进行抽象。
4+
5+
---------------------------
6+
7+
演示(SSM版):[搭建中][1]
8+
兄弟项目:
9+
[SSH版(实现了SSM版95%功能)][3]
10+
[Servlet版(实现了SSM版85%功能)][2]
11+
12+
13+
----------------------------
14+
15+
本项目的亮点:
16+
17+
* 功能齐全,页面丰富,实现了小商城的大部分功能
18+
* 前端仿天猫2017页面,基于原生CSS(前台)、Bootstrap(后台)、Jquery、Bootstrap Js构建
19+
* 本项目为Maven项目,后端使用 Spring 4 + SpringMVC 4 + Mybatis 3.4 + aspectj 1.8
20+
* 实现了一个*通用mapper*,免写SQL,可进行单表和多表关联查询,自动插入一对多/多对一对象(注解配置关联对象,结合MyBatis Generator)
21+
* 实现了一个 BaseService 类,集成了多条件的查询和增改删操作,普通Service只需写少量代码即可
22+
* 完全隔离MyBatis Generator生成代码和额外手写代码,以支持可持续化部署,实现了多个MyBatis Generator插件,全部采用软删除
23+
* 通过拦截器和自定义注解实现了方法级粒度的用户鉴权,不同用户组权限完全隔离
24+
* 通过 参数注解 进行方法级数据校验,无需额外配置校验类 (通过AOP切面实现)
25+
* 统一的错误处理
26+
27+
功能:
28+
29+
- [x] 首页、分类页、搜索页、产品页
30+
- [x] 购物车页面、下单页、支付页及支付成功页
31+
- [x] 我的订单页、确认收货及成功页、评价页
32+
- [x] 登陆页、注册页
33+
- [x] 全部数据库的后台可视化管理
34+
- [x] 网站SEO设置、图片路径设置
35+
36+
------------------
37+
38+
安装使用:
39+
40+
1. 若使用IDE打开,需按 Maven 文件安装依赖
41+
2. 若在Tomcat中部署,Maven文件中已经配置好直接在线部署,使用 maven tomcat7:deploy 可直接在线部署 (需先配置好Tomcat)
42+
3. 导入数据库small.sql,在 \src\main\resources\applicationContext.xml 中配置数据库
43+
4. 默认后台地址 /admin ,账户密码为 admin 123456 ,新建用户在前台注册,需要后台权限需要在数据库的User表的group_列中将该用户的用户组设置为 superAdmin
44+
5. JDK >= 1.8、数据库 Mysql
45+
46+
47+
[1]: http://
48+
[2]: https://github.com/xenv/S-mall-servlet
49+
[3]: https://github.com/xenv/S-mall-ssh

pom.xml

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<!-- $Id: pom.xml 642118 2008-03-28 08:04:16Z reinhard $ -->
21+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22+
23+
<modelVersion>4.0.0</modelVersion>
24+
<packaging>war</packaging>
25+
26+
<name>tmall</name>
27+
<groupId>xenv</groupId>
28+
<artifactId>tmall</artifactId>
29+
<version>1.0-SNAPSHOT</version>
30+
31+
<properties>
32+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33+
</properties>
34+
35+
<dependencies>
36+
<dependency>
37+
<groupId>mysql</groupId>
38+
<artifactId>mysql-connector-java</artifactId>
39+
<version>5.1.45</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>javax.servlet</groupId>
43+
<artifactId>javax.servlet-api</artifactId>
44+
<version>4.0.0</version>
45+
<scope>provided</scope>
46+
</dependency>
47+
<dependency>
48+
<groupId>jstl</groupId>
49+
<artifactId>jstl</artifactId>
50+
<version>1.2</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.apache.logging.log4j</groupId>
54+
<artifactId>log4j-core</artifactId>
55+
<version>2.10.0</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.apache.logging.log4j</groupId>
59+
<artifactId>log4j-api</artifactId>
60+
<version>2.10.0</version>
61+
</dependency>
62+
63+
<dependency>
64+
<groupId>org.apache.logging.log4j</groupId>
65+
<artifactId>log4j-web</artifactId>
66+
<version>2.10.0</version>
67+
</dependency>
68+
69+
<dependency>
70+
<groupId>org.apache.taglibs</groupId>
71+
<artifactId>taglibs-standard-impl</artifactId>
72+
<version>1.2.5</version>
73+
</dependency>
74+
<dependency>
75+
<groupId>junit</groupId>
76+
<artifactId>junit</artifactId>
77+
<version>4.12</version>
78+
</dependency>
79+
<dependency>
80+
<groupId>com.alibaba</groupId>
81+
<artifactId>druid</artifactId>
82+
<version>1.1.6</version>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.mybatis</groupId>
86+
<artifactId>mybatis-spring</artifactId>
87+
<version>1.3.1</version>
88+
</dependency>
89+
<dependency>
90+
<groupId>org.mybatis</groupId>
91+
<artifactId>mybatis</artifactId>
92+
<version>3.4.1</version>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.springframework</groupId>
96+
<artifactId>spring-context</artifactId>
97+
<version>4.3.5.RELEASE</version>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.springframework</groupId>
101+
<artifactId>spring-web</artifactId>
102+
<version>4.3.5.RELEASE</version>
103+
</dependency>
104+
<dependency>
105+
<groupId>org.springframework</groupId>
106+
<artifactId>spring-webmvc</artifactId>
107+
<version>4.3.5.RELEASE</version>
108+
</dependency>
109+
<dependency>
110+
<groupId>org.springframework</groupId>
111+
<artifactId>spring-test</artifactId>
112+
<version>4.3.5.RELEASE</version>
113+
</dependency>
114+
<dependency>
115+
<groupId>org.springframework</groupId>
116+
<artifactId>spring-jdbc</artifactId>
117+
<version>4.3.5.RELEASE</version>
118+
</dependency>
119+
<dependency>
120+
<groupId>org.springframework</groupId>
121+
<artifactId>spring-tx</artifactId>
122+
<version>4.3.5.RELEASE</version>
123+
</dependency>
124+
<dependency>
125+
<groupId>com.github.pagehelper</groupId>
126+
<artifactId>pagehelper</artifactId>
127+
<version>5.1.2</version>
128+
</dependency>
129+
<dependency>
130+
<groupId>commons-fileupload</groupId>
131+
<artifactId>commons-fileupload</artifactId>
132+
<version>1.3.3</version>
133+
</dependency>
134+
<dependency>
135+
<groupId>commons-io</groupId>
136+
<artifactId>commons-io</artifactId>
137+
<version>2.6</version>
138+
</dependency>
139+
<dependency>
140+
<groupId>org.apache.commons</groupId>
141+
<artifactId>commons-lang3</artifactId>
142+
<version>3.7</version>
143+
</dependency>
144+
<dependency>
145+
<groupId>org.mybatis.generator</groupId>
146+
<artifactId>mybatis-generator-core</artifactId>
147+
<version>1.3.6</version>
148+
</dependency>
149+
<dependency>
150+
<groupId>org.aspectj</groupId>
151+
<artifactId>aspectjrt</artifactId>
152+
<version>1.8.13</version>
153+
</dependency>
154+
<dependency>
155+
<groupId>org.aspectj</groupId>
156+
<artifactId>aspectjweaver</artifactId>
157+
<version>1.8.13</version>
158+
</dependency>
159+
160+
161+
162+
163+
164+
</dependencies>
165+
166+
<!--配置Tomcat热部署,直接把全部网站在本地POST上服务器-->
167+
<build>
168+
<finalName>tmall</finalName>
169+
<plugins>
170+
<plugin>
171+
<groupId>org.apache.maven.plugins</groupId>
172+
<artifactId>maven-compiler-plugin</artifactId>
173+
<configuration>
174+
<source>1.8</source>
175+
<target>1.8</target>
176+
</configuration>
177+
</plugin>
178+
<plugin>
179+
<groupId>org.apache.tomcat.maven</groupId>
180+
<artifactId>tomcat7-maven-plugin</artifactId>
181+
<version>2.1</version>
182+
<configuration>
183+
<port>80</port>
184+
<!--网站路径-->
185+
<path>/</path>
186+
<url>http://localhost:80/manager/text</url>
187+
<uriEncoding>UTF-8</uriEncoding>
188+
<finalName>${project.artifactId}</finalName>
189+
<!--只有manager-script权限的管理员账号密码-->
190+
<username>admin</username>
191+
<password>admin</password>
192+
<server>tomcat8</server>
193+
<update>true</update>
194+
</configuration>
195+
</plugin>
196+
</plugins>
197+
<resources>
198+
<resource>
199+
<directory>src/main/resources</directory>
200+
<includes>
201+
<include>**/*.properties</include>
202+
<include>**/*.xml</include>
203+
<include>**/*.tld</include>
204+
</includes>
205+
<filtering>false</filtering>
206+
</resource>
207+
<resource>
208+
<directory>src/main/java</directory>
209+
<includes>
210+
<include>**/*.properties</include>
211+
<include>**/*.xml</include>
212+
</includes>
213+
<filtering>false</filtering>
214+
</resource>
215+
</resources>
216+
217+
</build>
218+
219+
220+
</project>

0 commit comments

Comments
 (0)