基于SSM的租赁管理系统0.2_20161225_开发环境
项目环境搭建
1. 开发环境
Sybase PowerDesigner 15.1.0 + MySQL 5.7.15 + Navicat 11.0.9 + eclipse EE Mars 2.0 + FireFox 49.0.1
2. 运行环境
Maven 3.3.3 + JDK 1.7 + spring 4.1.3 + mybatis 3.2.8 + tomcat 7.0
3. 项目组织目录
4. Maven核心配置文件
pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <groupId>org.guangsoft</groupId>
5 <artifactId>car_rent</artifactId>
6 <version>0.0.1-SNAPSHOT</version>
7 <packaging>war</packaging>
8 <properties>
9 <junit.version>4.12</junit.version>
10 <spring.version>4.1.3.RELEASE</spring.version>
11 <mybatis.version>3.2.8</mybatis.version>
12 <mybatis.spring.version>1.2.2</mybatis.spring.version>
13 <mybatis.paginator.version>1.2.15</mybatis.paginator.version>
14 <mysql.version>5.1.32</mysql.version>
15 <slf4j.version>1.6.4</slf4j.version>
16 <jackson.version>2.4.2</jackson.version>
17 <druid.version>1.0.9</druid.version>
18 <httpclient.version>4.3.5</httpclient.version>
19 <jstl.version>1.2</jstl.version>
20 <servlet-api.version>2.5</servlet-api.version>
21 <jsp-api.version>2.0</jsp-api.version>
22 <joda-time.version>2.5</joda-time.version>
23 <commons-lang3.version>3.3.2</commons-lang3.version>
24 <commons-io.version>1.3.2</commons-io.version>
25 <commons-net.version>3.3</commons-net.version>
26 <pagehelper.version>3.4.2-fix</pagehelper.version>
27 <jsqlparser.version>0.9.1</jsqlparser.version>
28 <commons-fileupload.version>1.3.1</commons-fileupload.version>
29 <jedis.version>2.7.2</jedis.version>
30 <solrj.version>4.10.3</solrj.version>
31 </properties>
32
33 <dependencies>
34 <!-- 时间操作组件 -->
35 <dependency>
36 <groupId>joda-time</groupId>
37 <artifactId>joda-time</artifactId>
38 <version>${joda-time.version}</version>
39 </dependency>
40 <!-- Apache工具组件 -->
41 <dependency>
42 <groupId>org.apache.commons</groupId>
43 <artifactId>commons-lang3</artifactId>
44 <version>${commons-lang3.version}</version>
45 </dependency>
46 <dependency>
47 <groupId>org.apache.commons</groupId>
48 <artifactId>commons-io</artifactId>
49 <version>${commons-io.version}</version>
50 </dependency>
51 <dependency>
52 <groupId>commons-net</groupId>
53 <artifactId>commons-net</artifactId>
54 <version>${commons-net.version}</version>
55 </dependency>
56 <!-- Jackson Json处理工具包 -->
57 <dependency>
58 <groupId>com.fasterxml.jackson.core</groupId>
59 <artifactId>jackson-databind</artifactId>
60 <version>${jackson.version}</version>
61 </dependency>
62 <!-- httpclient -->
63 <dependency>
64 <groupId>org.apache.httpcomponents</groupId>
65 <artifactId>httpclient</artifactId>
66 <version>${httpclient.version}</version>
67 </dependency>
68 <!-- 单元测试 -->
69 <dependency>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 <version>${junit.version}</version>
73 <scope>test</scope>
74 </dependency>
75 <!-- 日志处理 -->
76 <dependency>
77 <groupId>org.slf4j</groupId>
78 <artifactId>slf4j-log4j12</artifactId>
79 <version>${slf4j.version}</version>
80 </dependency>
81 <!-- Mybatis -->
82 <dependency>
83 <groupId>org.mybatis</groupId>
84 <artifactId>mybatis</artifactId>
85 <version>${mybatis.version}</version>
86 </dependency>
87 <dependency>
88 <groupId>org.mybatis</groupId>
89 <artifactId>mybatis-spring</artifactId>
90 <version>${mybatis.spring.version}</version>
91 </dependency>
92 <dependency>
93 <groupId>com.github.miemiedev</groupId>
94 <artifactId>mybatis-paginator</artifactId>
95 <version>${mybatis.paginator.version}</version>
96 </dependency>
97 <dependency>
98 <groupId>com.github.pagehelper</groupId>
99 <artifactId>pagehelper</artifactId>
100 <version>${pagehelper.version}</version>
101 </dependency>
102 <!-- MySql -->
103 <dependency>
104 <groupId>mysql</groupId>
105 <artifactId>mysql-connector-java</artifactId>
106 <version>${mysql.version}</version>
107 </dependency>
108 <!-- 连接池 -->
109 <dependency>
110 <groupId>com.alibaba</groupId>
111 <artifactId>druid</artifactId>
112 <version>${druid.version}</version>
113 </dependency>
114 <!-- Spring -->
115 <dependency>
116 <groupId>org.springframework</groupId>
117 <artifactId>spring-context</artifactId>
118 <version>${spring.version}</version>
119 </dependency>
120 <dependency>
121 <groupId>org.springframework</groupId>
122 <artifactId>spring-beans</artifactId>
123 <version>${spring.version}</version>
124 </dependency>
125 <dependency>
126 <groupId>org.springframework</groupId>
127 <artifactId>spring-webmvc</artifactId>
128 <version>${spring.version}</version>
129 </dependency>
130 <dependency>
131 <groupId>org.springframework</groupId>
132 <artifactId>spring-jdbc</artifactId>
133 <version>${spring.version}</version>
134 </dependency>
135 <dependency>
136 <groupId>org.springframework</groupId>
137 <artifactId>spring-aspects</artifactId>
138 <version>${spring.version}</version>
139 </dependency>
140 <!-- JSP相关 -->
141 <dependency>
142 <groupId>jstl</groupId>
143 <artifactId>jstl</artifactId>
144 <version>${jstl.version}</version>
145 </dependency>
146 <dependency>
147 <groupId>javax.servlet</groupId>
148 <artifactId>servlet-api</artifactId>
149 <version>${servlet-api.version}</version>
150 <scope>provided</scope>
151 </dependency>
152 <dependency>
153 <groupId>javax.servlet</groupId>
154 <artifactId>jsp-api</artifactId>
155 <version>${jsp-api.version}</version>
156 <scope>provided</scope>
157 </dependency>
158 <!-- 文件上传组件 -->
159 <dependency>
160 <groupId>commons-fileupload</groupId>
161 <artifactId>commons-fileupload</artifactId>
162 <version>${commons-fileupload.version}</version>
163 </dependency>
164 <!-- Redis客户端 -->
165 <dependency>
166 <groupId>redis.clients</groupId>
167 <artifactId>jedis</artifactId>
168 <version>${jedis.version}</version>
169 </dependency>
170 <!-- solr客户端 -->
171 <dependency>
172 <groupId>org.apache.solr</groupId>
173 <artifactId>solr-solrj</artifactId>
174 <version>${solrj.version}</version>
175 </dependency>
176 </dependencies>
177
178 <build>
179 <plugins>
180 <!-- java编译插件 -->
181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-compiler-plugin</artifactId>
184 <version>3.2</version>
185 <configuration>
186 <source>1.7</source>
187 <target>1.7</target>
188 <encoding>UTF-8</encoding>
189 </configuration>
190 </plugin>
191
192 <!-- 配置Tomcat插件 -->
193 <plugin>
194 <groupId>org.apache.tomcat.maven</groupId>
195 <artifactId>tomcat7-maven-plugin</artifactId>
196 <version>2.2</version>
197 <configuration>
198 <port>8080</port>
199 <path>/</path>
200 </configuration>
201 </plugin>
202 </plugins>
203
204 <resources>
205 <!-- 这个配置时告诉maven在做资源拷贝的时候(拷贝到target目录下)把src/main/java的properties和xml文件也都拷贝过去 -->
206 <resource>
207 <directory>src/main/java</directory>
208 <includes>
209 <include>**/*.properties</include>
210 <include>**/*.xml</include>
211 </includes>
212 <filtering>false</filtering>
213 </resource>
214
215 <!-- 将项目中的resources目录下的配置文件拷贝到taget目录下 如果不添加此节点resources目录下的配置文件都会被漏掉。 -->
216 <resource>
217 <directory>src/main/resources</directory>
218 <includes>
219 <include>**/*.properties</include>
220 <include>**/*.xml</include>
221 </includes>
222 <filtering>false</filtering>
223 </resource>
224 </resources>
225
226 </build>
227 </project>