Spring Boot + Gradle 依赖管理
来源:互联网 发布:glide源码原理 编辑:程序博客网 时间:2024/05/17 12:03
以Spring Boot的Web起步依赖为例,传递依赖了Jackson JSON库,有时候可能不需要用到该库,可以将传递依赖排除掉。
compile("org.springframework.boot:spring-boot-starter-web"){ exclude group: 'com.fasterxml.jackson.core'}'
如果某个依赖版本比Spring Boot的Web起步依赖引入的要新,可以在build.gradle文件里指明所要版本
compile("com.fasterxl.jackson.core:jackson-databind:2.4.3")
但是,如果需要使用较老版本的库,则不得不把老版本的依赖加入构建,并排除掉web起步依赖传递依赖的版本
compile("org.springframework.boot:spring-boot-starter-web"){ exclude group:'com.fasterxml.jackson.core'}compile ("com.fasterxml.jackson.core:jackson-databind:2.3.1")
阅读全文
0 0
- Spring Boot + Gradle 依赖管理
- Spring-boot +Gradle依赖管理+Mybatis 配置文件
- gradle依赖管理
- gradle -- 依赖管理
- Gradle统一依赖管理
- Gradle之依赖管理
- Gradle依赖管理
- Gradle 依赖管理
- Gradle依赖管理
- Gradle统一依赖管理
- Gradle Maven 依赖管理
- Spring Boot gradle
- spring boot + gradle + mysql
- Spring Boot + Gradle + Thymeleaf
- spring boot 多模块管理时,依赖注入bean失败
- spring boot 依赖注入
- Spring Boot 依赖注入
- Spring Boot 依赖POM
- TextView获取每行的内容
- Python小例子
- 1.判断两个链表是否相交,若相交,求交点。(假设链表不带环)2.判断两个链表是否相交,若相交,求交点。(假设链表可能带环)【升级版】
- notes2016
- kill -9 和 kill -15 的区别
- Spring Boot + Gradle 依赖管理
- Caffe关闭日志输出
- Linux 学习总结 unit01访问命令行
- redis缓存在linux上搭建的过程
- 使用eclipse工程导出jar包
- zookeeper单机伪集群配置
- linux查看多有的用户和组信息
- [python]python中str()与repr()的区别与联系
- tarjan算法总结