首页 > 编程语言 > 详细

Spring----->projects----->Spring IO Platform

时间:2016-12-17 22:55:56      阅读:285      评论:0      收藏:0      [点我收藏+]

Spring IO Platform概述:

    • Spring IO Platform是spring若干子项目中的一个
    • Spring IO Platform的主要功能是:
      • 这个项目对开发者所构建的project可能依赖的所有三方工程进行版本控制。实际的一个external dependency 有可能有多个可用版本,如reactor-spring-webmvc就有若干种可用版本,譬如2.0.7.RELEASE、1.0.3.RELEASE.....,开发者的project中可能要同时引入若干个external dependencies(如有可能既要引入spring-webmvc又需要引入hibernate),这种情况下不同的external dependencies之间就有可能出现版本冲突的问题(&&spring-webmvc 2.0.7.RELEASE可能和hibernate2发生版本冲突问题)。那么如何避免这种版本冲突问题呢?Spring IO Platform建立了一个表格,对所有可能被引用的external dependencies都选定了一个特定的版本,这个表格中的所有项目都是不冲突的,如果开发者的project中事先引入了Spring IO Platform,那么后面的开发过程中,继续往开发者的project中引入external dependencies的时候就可以不用配置各个external dependencies的版本了,maven会自动查找Spring IO Platform的那个表格,引入该表格中所定义的相应版本的external dependencies。
      • Spring IO Platform表格: 定义了各个external dependencies的版本的表格 ,避免不同external dependencies的版本冲突问题,下表截取了其中的一部分

        io.projectreactor.spring

        reactor-spring-context

        2.0.7.RELEASE

        io.projectreactor.spring

        reactor-spring-core

        2.0.7.RELEASE

        io.projectreactor.spring

        reactor-spring-messaging

        2.0.7.RELEASE

        io.projectreactor.spring

        reactor-spring-webmvc

        2.0.7.RELEASE

      • 如何在自己的project中使用Spring IO Platform,从而避免各个external dependencies的版本冲突问题,参见spring官网教程:网页的quick start部分,注意:
          • Spring IO Platform也有多个不同的版本可被使用
          • step1,引入Spring IO Platform技术分享

             

          • step2,使用Spring IO Platform   技术分享

             

             

  

Spring----->projects----->Spring IO Platform

原文:http://www.cnblogs.com/lxrm/p/6193216.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!