一、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/ ,所有资源都有,建议选择那些人气高的,比较稳定。
感谢各位老铁的支持!