ssm框架所需jar包整理及各jar包的作⽤以下是我⽬前新搭建的ssm项⽬的l
之后如果需要其他的话再加
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="/POM/4.0.0" xmlns:xsi="/2001/XMLSchema-instance"
xsi:schemaLocation="/POM/4.0.0 /xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId&usi</groupId>
<artifactId>youxi</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>youxi Maven Webapp</name>
<!-- FIXME change it to the project's website -->
<url>ample</url>
<properties>
<slf4j-api.version>1.7.25</slf4j-api.version>
<logback.version>1.1.7</logback.version>
<druid.version>1.1.0</druid.version>
<cglib-nodep.version>3.2.5</cglib-nodep.version>
<poi.version>3.9</poi.version>
<jdk.version>1.7</jdk.version>
&ding>UTF-8</ding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>4.12</junit.version>
<commons-lang.version>2.6</commons-lang.version>
<commons-codec.version>1.10</commons-codec.version>
<commons-lang3.version>3.5</commons-lang3.version>
<spring.version>4.1.7.RELEASE</spring.version>
<fastjson.version>1.2.28</fastjson.version>
<servlet-api.version>3.1.0</servlet-api.version>
<jackson.version>2.8.11</jackson.version>
<validation.version>1.1.0.Final</validation.version>
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
<el-api.version>2.2</el-api.version>
<guava.version>18.0</guava.version>
<selection.version>1.0-SNAPSHOT</selection.version>
<profiler.version>4.0.5</profiler.version>
<jannotation.version>4.0.5</jannotation.version>
<aspectj.version>1.8.9</aspectj.version>
<pagehelper.version>4.0.0</pagehelper.version>
<mybatis.version>3.4.1</mybatis.version>
<mybatis-spring.version>1.3.0</mybatis-spring.version>
</properties>
<dependencies>
<!-- log start -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<!-- log end -->
<!-- datasource start -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib-nodep.version}</version>
</dependency>
<!-- datasource end -->
<!-- 单元测试 start -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<!-- 表⽰开发的时候引⼊,发布的时候不会加载此包 -->
<scope>test</scope>
</dependency>
<!-- 对JUNIT等测试框架的简单封装 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
<!-- 单元测试 end -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons-lang.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
<dependency>
<groupId>org.apachemons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<!--<dependency>-->
<!--<groupId>commons-io</groupId>-->
<!--<artifactId>commons-io</artifactId>-->
<!--<version>2.4</version>-->
<!--</dependency>-->
<!-- spring -->
<!-- 这个jar⽂件包含在应⽤中使⽤Spring的AOP特性时所需的类。使⽤基于AOP的Spring特性,如声明型事务管理(Declarative Transaction Management),也要在应⽤⾥包含这个jar包。 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- 这个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>
<!-- 这个jar⽂件为Spring核⼼提供了⼤量扩展。可以到使⽤Spring ApplicationContext特性时所需的全部类,JDNI所需的全部类,UI⽅⾯的⽤来与模板(Templating)引擎如 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- spring额外⽀持包,⽐如邮件服务、视图解析等 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- spring核⼼⼯具类,Spring的其他模块⼤量使⽤spring-core -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 事务 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- 包含Web应⽤开发时,⽤到Spring框架时所需的核⼼类,包括⾃动载⼊WebApplicationContext特性的类、Struts与JSF集成类、⽂件上传的⽀持类、Filter类和⼤量⼯具辅助类。 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- 这个jar⽂件包含Spring MVC框架相关的所有类。包含国际化、标签、Theme、视图展现的FreeMarker、JasperReports、Tiles、Velocity、XSLT相关类。当然,如果你的应⽤使⽤了独⽴的MVC框架,则⽆需这个JAR⽂件⾥的任何类。 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- 这个jar⽂件包含对Spring对JDBC数据访问进⾏封装的所有类。 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- mybatis核⼼包 -->
<dependency>
<groupId&batis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<!-- mybatis/spring包 -->
<dependency>
<groupId&batis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis-spring.version}</version>
</dependency>
<!-- spring -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
<!-- 添加servlet核⼼包 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
<version>${servlet-api.version}</version>
</dependency>
<!--<!– 导⼊java ee jar 包 –>-->
<!--<dependency>-->
<!--<groupId>javax</groupId>-->
<!--<artifactId>javaee-api</artifactId>-->
<!--<version>7.0</version>-->
<!--</dependency>-->
<!-- JSON begin -->
<dependency>
<groupId>com.</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.dule</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- alibaba fastjson 格式化对 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!-- JSON end -->
<!--校验参数使⽤ -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>${validation.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
<!--<dependency>-->
<!--<groupId>javax.el</groupId>-->
<!--<artifactId>el-api</artifactId>-->
<!--<version>${el-api.version}</version>-->
<!--<scope>provided</scope>-->
<!--</dependency>-->
<!--校验参数使⽤ -->
<!-- ⼯具类 -->
<dependency>
<groupId&le.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId&lecode.ehcache-spring-annotations</groupId>
<artifactId>ehcache-spring-annotations</artifactId>
<version>1.2.0</version>
</dependency>
<!-- 导⼊dbcp的jar包,⽤来在l中配置数据库 -->
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
<exclusions>
<exclusion>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>1.6</version>
</dependency>
<!--<dependency>-->
<!--<groupId>org.springframework</groupId>-->
<!--<artifactId>spring-orm</artifactId>-->
<!--<version>${soa.bingo.spring.version}</version>-->
<!--</dependency>-->
<!-- 导⼊Mysql数据库链接jar包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.0.8</version>
<scope>runtime</scope>
</dependency>
<!--<dependency>-->
<!--<groupId>org.springframework.data</groupId>-->
<!--<artifactId>spring-data-hadoop</artifactId>-->
<!--<version>2.5.0.RELEASE</version>-->
<!--</dependency>-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!--<plugin>-->
mysql下载jar包<!--<groupId&bay.jetty</groupId>-->
<!--<artifactId>maven-jetty-plugin</artifactId>-->
<!--<version>6.1.22</version>-->
<!--<configuration>-->
<!--<scanIntervalSeconds>0</scanIntervalSeconds>-->
<!--<connectors>-->
<!--<connector implementation="bay.jetty.nio.SelectChannelConnector">-->              <!--<port>8080</port>-->
<!--<host>youxi.zq</host>-->
<!--</connector>-->
<!--</connectors>-->
<!--<contextPath>/</contextPath>-->
<!--</configuration>-->
<!--</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>youxi</warName>
<webResources>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<targetPath>WEB-INF</targetPath>
</resource>
</webResources>        </configuration>
</plugin>
</plugins>
</build>
</project>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。