通过Maven管理配置SSM所需要的jar包

在pom.xml中配置
< properties >
           <!-- 统一版本信息 -->
           < spring.version > 4.3.7.RELEASE </ spring.version >
</ properties >



< dependencies >
           <!-- spring框架基本的核心工具类 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring-core </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!--所有应用都要用到。包含访问配置文件、创建和管理bean以及进行Inversion of/Dependency Injrction (IOC/DI)操作相关的所以类。如果应用只需基本的IOC\DI支持,引入spring-core及spring-bean即可 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring-beans </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 包含spring对 jdbc 数据访问进行封装的所有类 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring- jdbc </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 为JDBC、 Hibernate 、JDO、JPA提供一致性的声明式和编程式事务管理 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring- tx </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 包含web应用开发时,用到Spring框架时所需的核心类,包括自动载入WebApplicationContext -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring-web </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 包括SpringMVC框架用到的所有类 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring- webmvc </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 包括SpringTest对JUNIT等测试框架的简单封装 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring-test </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- 为Spring核心提供了大量扩展。可以找到使用spring applicationcontext 特性时所需的全部类, instrumentation组件以及校验validation方面的相关类 -->
           < dependency >
               < groupId > org.springframework </ groupId >
               < artifactId > spring-context </ artifactId >
               < version > ${spring.version} </ version >
           </ dependency >
           <!-- Servlet Web -->
           < dependency >
               < groupId > javax.servlet </ groupId >
               < artifactId > javax.servlet- api </ artifactId >
               < version > 3.1.0 </ version >
               < scope > provided </ scope >
           </ dependency >
           <!-- json 解析 -->
           < dependency >
                < groupId > com.fasterxml.jackson.core </ groupId >
               < artifactId > jackson - databind </ artifactId >
               < version > 2.8.7 </ version >
           </ dependency >
           <!-- Map工具类 对标准java Collection的扩展spring-core.jar需commons-collections.jar -->
           < dependency >
               < groupId > commons-collections </ groupId >
                < artifactId > commons-collections </ artifactId >
               < version > 3.2 </ version >
           </ 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 > mysql </ groupId >
                < artifactId > mysql -connector-java </ artifactId >
               < version > 5.1.37 </ version >
           </ dependency >
           <!--连接池 -->
           < dependency >
               < groupId > c3p0 </ groupId >
               < artifactId > c3p0 </ artifactId >
               < version > 0.9.1.2 </ version >
           </ dependency >
</ dependencies >

若需要其他jar包,可以自行下载
MAVEN仓库:http://mvnrepository.com/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值