Spring IO Platform ,解决Spring项目组合中版本依赖
https://www.cnblogs.com/zhouqinxiong/p/spring_io_platform.html
https://www.jianshu.com/p/dd0baba45f52
Spring IO Platform框架简单来说就是一个版本号兼容系统,它将常用第三方类库的兼容的版本组织起来。只要我们在项目中引用了Spring IO Platform,就不需要为这些第三方类库设置版本号了,Spring IO Platform会自动帮我们设置所有兼容的版本号。本文参考自官方文档,如果需要查阅详细信息,请直接看原文即可。
引入类库
使用Maven 方式一使用Maven的话,在pom.xml中修改为类似这样的。
使用Maven 方式二4.0.0 com.example your-application 1.0.0-SNAPSHOT io.spring.platform platform-bom Brussels-SR3 pom import
或者将设置Spring IO Platform为父项目也行。
4.0.0 com.example your-application 1.0.0-SNAPSHOT io.spring.platform platform-bom Brussels-SR3
设置完成后,以后添加依赖项就不需要指定版本好了。可以像下面这样添加依赖。
使用Gradle 方式一org.springframework spring-core
…



