Skip to content

Commit 5ce2bb6

Browse files
committed
first commit
0 parents  commit 5ce2bb6

File tree

236 files changed

+10012
-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.

236 files changed

+10012
-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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# 小小商城系统
2+
3+
练手JavaWEB项目,本版本为SSH版(实现了SSM版95%的功能),实现了BaseService对Service层的大部分方法的抽象,通过拦截器实现了方法级粒度的鉴权
4+
5+
---------------------------
6+
7+
演示(SSM版):[搭建中][1]
8+
兄弟项目:
9+
[SSM版(完整版)][3]
10+
[Servlet版(实现了SSM版85%功能)][2]
11+
12+
13+
----------------------------
14+
15+
本项目的亮点:
16+
17+
* 功能齐全,页面丰富,实现了小商城的大部分功能
18+
* 前端仿天猫2017页面,基于原生CSS、Jquery、BootstrapJs构建
19+
* 本项目为Maven项目,后端使用 Spring 4 + Struts 2 + Hibernate 4
20+
* 实现了一个 BaseService 类,涵盖了90% 的 Service 方法,各个 Service 只需写少量代码即可
21+
* 通过拦截器和自定义注解实现了方法级粒度的用户鉴权
22+
23+
24+
功能:
25+
26+
- [x] 首页、分类页、搜索页、产品页
27+
- [x] 购物车页面、下单页、支付页及支付成功页
28+
- [x] 我的订单页、确认收货及成功页、评价页
29+
- [x] 登陆页、注册页
30+
- [x] 全部数据库的后台可视化管理
31+
- [x] 网站SEO设置、图片路径设置
32+
33+
------------------
34+
35+
安装使用:
36+
37+
1. 若使用IDE打开,需按 Maven 文件安装依赖
38+
2. 若在Tomcat中部署,Maven文件中已经配置好直接在线部署,使用 maven tomcat7:deploy 可直接在线部署 (需先配置好Tomcat)
39+
3. 导入数据库small.sql,在 \src\main\resources\applicationContext.xml 中配置数据库
40+
4. 默认后台地址 /admin ,账户密码为 admin 123456 ,新建用户在前台注册,需要后台权限需要在数据库的User表的group_列中将该用户的用户组设置为 superAdmin
41+
5. JDK >= 1.8、数据库 Mysql
42+
43+
44+
[1]: http://
45+
[2]: https://github.com/xenv/S-mall-servlet
46+
[3]: https://github.com/xenv/S-mall-ssm

pom.xml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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+
34+
</properties>
35+
<dependencies>
36+
<dependency>
37+
<groupId>junit</groupId>
38+
<artifactId>junit</artifactId>
39+
<version>3.8.1</version>
40+
<scope>test</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.springframework</groupId>
44+
<artifactId>spring-context</artifactId>
45+
<version>4.1.9.RELEASE</version>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>org.springframework</groupId>
50+
<artifactId>spring-orm</artifactId>
51+
<version>4.1.9.RELEASE</version>
52+
</dependency>
53+
54+
<dependency>
55+
<groupId>org.apache.struts</groupId>
56+
<artifactId>struts2-core</artifactId>
57+
<version>2.5.14.1</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.apache.struts</groupId>
61+
<artifactId>struts2-spring-plugin</artifactId>
62+
<version>2.5.14.1</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.apache.struts</groupId>
66+
<artifactId>struts2-convention-plugin</artifactId>
67+
<version>2.5.14.1</version>
68+
</dependency>
69+
70+
71+
<dependency>
72+
<groupId>mysql</groupId>
73+
<artifactId>mysql-connector-java</artifactId>
74+
<version>5.1.45</version>
75+
</dependency>
76+
77+
<dependency>
78+
<groupId>org.hibernate</groupId>
79+
<artifactId>hibernate-core</artifactId>
80+
<version>4.3.11.Final</version>
81+
</dependency>
82+
83+
<dependency>
84+
<groupId>org.hibernate</groupId>
85+
<artifactId>hibernate-c3p0</artifactId>
86+
<version>4.3.11.Final</version>
87+
</dependency>
88+
89+
<dependency>
90+
<groupId>org.apache.logging.log4j</groupId>
91+
<artifactId>log4j-core</artifactId>
92+
<version>2.10.0</version>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.apache.logging.log4j</groupId>
96+
<artifactId>log4j-api</artifactId>
97+
<version>2.10.0</version>
98+
</dependency>
99+
100+
101+
<dependency>
102+
<groupId>javax.servlet</groupId>
103+
<artifactId>javax.servlet-api</artifactId>
104+
<version>4.0.0</version>
105+
<scope>provided</scope>
106+
</dependency>
107+
108+
109+
<dependency>
110+
<groupId>jstl</groupId>
111+
<artifactId>jstl</artifactId>
112+
<version>1.2</version>
113+
</dependency>
114+
115+
116+
117+
118+
<dependency>
119+
<groupId>org.apache.taglibs</groupId>
120+
<artifactId>taglibs-standard-impl</artifactId>
121+
<version>1.2.5</version>
122+
</dependency>
123+
</dependencies>
124+
125+
<!--配置Tomcat热部署,直接把全部网站在本地POST上服务器-->
126+
<build>
127+
<finalName>tmall</finalName>
128+
<plugins>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-compiler-plugin</artifactId>
132+
<configuration>
133+
<source>1.8</source>
134+
<target>1.8</target>
135+
</configuration>
136+
</plugin>
137+
<plugin>
138+
<groupId>org.apache.tomcat.maven</groupId>
139+
<artifactId>tomcat7-maven-plugin</artifactId>
140+
<version>2.1</version>
141+
<configuration>
142+
<port>80</port>
143+
<!--网站路径-->
144+
<path>/</path>
145+
<url>http://localhost:80/manager/text</url>
146+
<uriEncoding>UTF-8</uriEncoding>
147+
<finalName>${project.artifactId}</finalName>
148+
<!--只有manager-script权限的管理员账号密码-->
149+
<username>admin</username>
150+
<password>admin</password>
151+
<server>tomcat8</server>
152+
<update>true</update>
153+
</configuration>
154+
</plugin>
155+
</plugins>
156+
</build>
157+
158+
</project>

0 commit comments

Comments
 (0)