|
|
<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>zxts</groupId>
|
|
|
<artifactId>zxborrow</artifactId>
|
|
|
<packaging>war</packaging>
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
<name>zxbook Maven Webapp</name>
|
|
|
<url>http://maven.apache.org</url>
|
|
|
<properties>
|
|
|
<!-- Generic properties -->
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
<!-- Spring -->
|
|
|
<spring.version>4.3.10.RELEASE</spring.version>
|
|
|
</properties>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>1.2.44</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
<artifactId>gson</artifactId>
|
|
|
<version>2.8.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>3.8.1</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<!-- mysql数据库驱动类 -->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>5.1.46</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 导入MyBatis生成器 -->
|
|
|
<!-- https://mvnrepository.com/artifact/org.mybatis.generator/mybatis-generator-core -->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-core</artifactId>
|
|
|
<version>1.3.5</version>
|
|
|
</dependency>
|
|
|
<!-- Spring -->
|
|
|
<!-- 1)包含Spring 框架基本的核心工具类。Spring 其它组件要都要使用到这个包里的类, 是其它组件的基本核心 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 2)这个jar 文件是所有应用都要用到的,它包含访问配置文件、创建和管理bean 以及进行Inversion of Control
|
|
|
/ Dependency Injection(IoC/DI)操作相关的所有类。如果应用只需基本的IoC/DI 支持,引入spring-core.jar
|
|
|
及spring-beans.jar 文件就可以了。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-beans</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 3)这个jar 文件为Spring 核心提供了大量扩展。可以找到使用Spring ApplicationContext特性时所需的全部类,JDNI
|
|
|
所需的全部类,instrumentation组件以及校验Validation 方面的相关类。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-context</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 4) 这个jar 文件包含对Spring 对JDBC 数据访问进行封装的所有类。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 5) 为JDBC、Hibernate、JDO、JPA等提供的一致的声明式和编程式事务管理。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-tx</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 6)Spring web 包含Web应用开发时,用到Spring框架时所需的核心类,包括自动载入WebApplicationContext特性的类、Struts与JSF集成类、文件上传的支持类、Filter类和大量工具辅助类。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-web</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 7)包含SpringMVC框架相关的所有类。 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 8)Spring test 对JUNIT等测试框架的简单封装 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<!-- DAO: MyBatis -->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
<version>3.4.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
<version>1.3.1</version>
|
|
|
</dependency>
|
|
|
<!-- 连接技术 -->
|
|
|
<dependency>
|
|
|
<groupId>c3p0</groupId>
|
|
|
<artifactId>c3p0</artifactId>
|
|
|
<version>0.9.1.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
<artifactId>commons-dbcp</artifactId>
|
|
|
<version>1.4</version>
|
|
|
</dependency>
|
|
|
<!-- Servlet web -->
|
|
|
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
<version>3.1.0</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>jstl</artifactId>
|
|
|
<version>1.2</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<!-- 配置JDK插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
|
<encoding>UTF8</encoding>
|
|
|
<skip>true</skip>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
<version>1.3.5</version>
|
|
|
<configuration>
|
|
|
<!--配置文件的路径 -->
|
|
|
<configurationFile>${basedir}/src/main/resources/generatorConfig.xml</configurationFile>
|
|
|
<overwrite>true</overwrite>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
<finalName>zxborrow</finalName>
|
|
|
</build>
|
|
|
</project>
|