[英]Spring Boot BOM for non boot spring project
I'd like to use spring boot specific BOM for my non-boot spring project. 我想为非启动spring项目使用特定于spring boot的BOM。 Is it acceptable to include spring-boot-dependencies or platform-bom and what's better? 包含spring-boot-dependencies或platform-bom是否可以接受,还有什么更好的?
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>...</version>
<type>pom</type>
<scope>import</scope>
</dependency>
or 要么
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>...</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Thanks. 谢谢。
Both are valid approaches. 两者都是有效的方法。
To quote the Spring IO Platform documentation : 引用Spring IO Platform文档 :
Spring IO Platform builds on top of Spring Boot Spring IO平台基于Spring Boot构建
So, they provide what you search for a non spring boot application : a set of consistent dependencies and some specific beans provided by Spring Boot. 因此,它们提供了您在非Spring Boot应用程序中搜索的内容:一组一致的依赖项以及Spring Boot提供的一些特定的bean。
Now, personally, I would chose org.springframework.boot:spring-boot-dependencies
as Spring Boot is mature, have an important and active community and is often updated. 现在,就我个人而言,我将选择org.springframework.boot:spring-boot-dependencies
因为Spring Boot已成熟,拥有重要且活跃的社区,并且经常进行更新。
See the spring-boot github . 参见spring-boot github 。 It is not the case of the spring-io/platform . spring-io / platform并非如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.