ssm框架需要用到的依赖包(使用idea)

IDEA中SSM框架所需依赖包整理

一、ssm框架需要用到的依赖包(使用idea)

干货干货!!再也不用找依赖包啦!下面是我整理好的依赖包,放入build.gradle中就好啦!
这些依赖包都是人气最高的!
下面是build.gradle文件:

group 'SpringMVCDemo'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'war'

sourceCompatibility = 1.8

//用户基于镜像来创建ECS实例,从而获得与镜像一致的系统环境。阿里云镜像市场提供服务商制作的镜像,这些镜像在操作系统上整合了具体的软件环境和功能
repositories {
//阿里镜像
    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    //mavenCentral()
}

dependencies {
    //junit4测试依赖(idea自带的)
    testCompile group: 'junit', name: 'junit', version: '4.12'

    //spring的依赖包
    testCompile group: 'org.springframework', name: 'spring-test', version: '4.3.14.RELEASE'
    compile group: 'org.springframework', name: 'spring-jdbc', version: '4.3.17.RELEASE'
    //springMVC依赖包
    compile group: 'org.springframework', name: 'spring-webmvc', version: '4.3.14.RELEASE'
    compile group: 'org.springframework', name: 'spring-tx', version: '4.3.14.RELEASE'
    //jstl(c标签)
    compile group: 'javax.servlet', name: 'jstl', version: '1.2'
    //jackson包
    compile group: 'com.alibaba', name: 'fastjson', version: '1.2.47'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.5'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.5'

    //文件下载包
    compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
    //文件上传包
    compile group: 'commons-io', name: 'commons-io', version: '2.4'

    //数据库连接依赖
    compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.26'

    //mybatis依赖包
    compile group: 'org.mybatis', name: 'mybatis', version: '3.4.1'
    compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.3.1'


    //公共资源依赖包
    compile group: 'commons-logging', name: 'commons-logging', version: '1.1.1'
    compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.1.1'
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
    compile group: 'commons-collections', name: 'commons-collections', version: '3.2.1'
    //阿里的连接池
    compile group: 'com.alibaba', name: 'druid', version: '1.0.29'

    //jquery依赖
    compile group: 'org.webjars.bower', name: 'jquery', version: '3.2.1'

}

大家还需要下载依赖包的话可以去这个网站,http://mvnrepository.com/ ,所有资源都有,建议选择那些人气高的,比较稳定。
感谢各位老铁的支持!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值