Spring IO Platform
来源:互联网 发布:网络直播发展趋势 编辑:程序博客网 时间:2024/06/04 08:21
spring不同模块或者与外部进行集成时,依赖处理就需要各自对应版本号。比如,较新spring与较老的quartz,它们集成就会遇到问题,给搭建和升级带来不便。因此Spring IO Platform应运而生,只要项目中引入了它,外部集成时依赖关系无需版本号。Spring IO Platform只是一个pom文件,记录了spring与其他开源项目对应的版本。省去了版本号,也就省去了处理依赖时的问题,因为Spring IO Platform中有最优的版本配置。SpringSource为了解决这些Jar冲突,推出了各种BOM,当然最著名的就是spring platform io bom,其中最核心的三个是:spring-framework-bom、spring-boot-dependencies、platform-bom。对于Spring工程来说,直接在pom.xml文件中添加如下配置代码,即可免去管理版本冲突的难题.
<properties> <spring.version>4.1.3.RELEASE</spring.version></properties><dependencyManagement> <dependencies><dependency><groupId>org.springframework</groupId><artifactId>spring-framework-bom</artifactId><version>${spring.version}</version><type>pom</type> <scope>import</scope></dependency></dependencies></dependencyManagement>此时,所有使用的spring模块dependency都不需要在声明version属性。例如:<dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId></dependency>
阅读全文
0 0
- Spring IO Platform
- Spring IO Platform
- Spring IO Platform 简介
- Spring IO Platform介绍
- Spring IO platform 使用介绍
- what is spring io platform
- spring项目-spring IO platform介绍
- Spring IO Platform简介及示例
- Spring5学习(二)-spring projects之Spring IO platform
- 解决jar包依赖:Spring IO platform推出bom
- 解决jar包依赖:Spring IO platform推出bom
- 解决jar包依赖:Spring IO platform推出bom
- platform
- platform
- platform
- platform
- platform
- platform
- 关键字 this static super final
- HDU 6108 小C的倍数问题(数学 推公式)
- POJ-1175:Starry Night(搜索+hash)
- hibernate框架中inverse和cascade的使用总结
- Java实现的一个发送手机短信(亲测可用)
- Spring IO Platform
- 2017 08 12 小结
- hadoop 执行 jar文件流程
- Leetcode-14: Longest Common Prefix
- ActiveMQ集群配置及使用
- 配置IBM WebSphere MQ及注意事项
- JDBC学习总结_2_DBUtils
- Swift 常用方法总结
- 我的博客地址