|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>org.example</groupId>
|
|
|
<artifactId>ssm-shop</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
<name>ssm-shop Maven Webapp</name>
|
|
|
<!-- FIXME change it to the project's website -->
|
|
|
<url>http://www.example.com</url>
|
|
|
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<maven.compiler.source>1.7</maven.compiler.source>
|
|
|
<maven.compiler.target>1.7</maven.compiler.target>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
<!--关于spring的坐标-->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-context</artifactId>
|
|
|
<version>5.0.5.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
<artifactId>aspectjweaver</artifactId>
|
|
|
<version>1.8.7</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
<version>5.0.5.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-tx</artifactId>
|
|
|
<version>5.0.5.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
<version>5.0.5.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
<version>5.0.5.RELEASE</version>
|
|
|
</dependency>
|
|
|
<!--关于servilet和jsp-->
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
<version>2.5</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
<version>2.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>jstl</groupId>
|
|
|
<artifactId>jstl</artifactId>
|
|
|
<version>1.2</version>
|
|
|
</dependency>
|
|
|
<!--关于mybatis-->
|
|
|
<!--引入mybatis的MBG逆向工程 逆向帮我们生成dao层的相关表类实现和数据-->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-core</artifactId>
|
|
|
<version>1.3.5</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
<version>3.4.5</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
<version>1.3.1</version>
|
|
|
</dependency>
|
|
|
<!--mysql相关坐标-->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>5.1.6</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>c3p0</groupId>
|
|
|
<artifactId>c3p0</artifactId>
|
|
|
<version>0.9.1.2</version>
|
|
|
</dependency>
|
|
|
<!--日志-->
|
|
|
<dependency>
|
|
|
<groupId>log4j</groupId>
|
|
|
<artifactId>log4j</artifactId>
|
|
|
<version>1.2.17</version>
|
|
|
</dependency>
|
|
|
<!--分页插件-->
|
|
|
<dependency>
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
<artifactId>pagehelper</artifactId>
|
|
|
<version>5.0.0</version>
|
|
|
</dependency>
|
|
|
<!--jackson json处理工具包-->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
<version>2.9.0</version>
|
|
|
</dependency>
|
|
|
<!--封装为json另外一个工具-->
|
|
|
<dependency>
|
|
|
<groupId>org.json</groupId>
|
|
|
<artifactId>json</artifactId>
|
|
|
<version>20140107</version>
|
|
|
</dependency>
|
|
|
<!--Fastjson 是一个 Java 库,可以将 Java 对象转换为 JSON 格式,
|
|
|
当然它也可以将 JSON 字符串转换为 Java 对象。.-->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>1.2.73</version>
|
|
|
</dependency>
|
|
|
<!--文件异步上传-->
|
|
|
<dependency>
|
|
|
<groupId>commons-io</groupId>
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
<version>2.5</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>commons-fileupload</groupId>
|
|
|
<artifactId>commons-fileupload</artifactId>
|
|
|
<version>1.3.1</version>
|
|
|
</dependency>
|
|
|
<!--测试-->
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>4.12</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.testng</groupId>
|
|
|
<artifactId>testng</artifactId>
|
|
|
<version>RELEASE</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>4.12</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<!-- shiro -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-core</artifactId>
|
|
|
<version>1.6.0</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
<!--有时候不添加下面这段代码会报mybatis的错,找不到mapping文件 所以最好加上-->
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
<version>1.3.2</version>
|
|
|
<configuration>
|
|
|
<!--配置文件的位置-->
|
|
|
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
|
|
|
<verbose>true</verbose>
|
|
|
<overwrite>true</overwrite>
|
|
|
</configuration>
|
|
|
</plugin><plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<source>7</source>
|
|
|
<target>7</target>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|