关于开发环境的搭建,在这里不会描述和讲解。You can use google or yahoo search how to build development environment.
直接上源码
No.1 pom.xml file.
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>wlife</groupId>
<artifactId>im</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>im Maven Webapp</name>
<url>http://maven.apache.org</url>
<!--Spring library version -->
<properties>
<spring.version>4.2.3.RELEASE</spring.version>
<mysql.version>5.1.38</mysql.version>
<junit.version>3.8.1</junit.version>
<jstl.version>1.2</jstl.version>
<taglibs.version>1.1.2</taglibs.version>
</properties>
<dependencies>
<!-- Spring dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<de