Spring 非引导 spring 项目的引导 BOM
Spring Boot BOM for non boot spring project
我想为我的非引导 spring 项目使用 spring 特定于引导的 BOM。包含 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>
或
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>...</version>
<type>pom</type>
<scope>import</scope>
</dependency>
谢谢。
两者都是有效的方法。
引用 Spring IO Platform documentation :
Spring IO Platform builds on top of Spring Boot
因此,它们提供了您搜索非 spring 启动应用程序的内容:一组一致的依赖项和 Spring Boot.
[=15= 提供的一些特定 bean ]
现在,就我个人而言,我会选择 org.springframework.boot:spring-boot-dependencies
,因为 Spring Boot 成熟,拥有一个重要且活跃的社区并且经常更新。
参见spring-boot github。
spring-io/platform.
不是这种情况
我想为我的非引导 spring 项目使用 spring 特定于引导的 BOM。包含 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>
或
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>...</version>
<type>pom</type>
<scope>import</scope>
</dependency>
谢谢。
两者都是有效的方法。
引用 Spring IO Platform documentation :
Spring IO Platform builds on top of Spring Boot
因此,它们提供了您搜索非 spring 启动应用程序的内容:一组一致的依赖项和 Spring Boot.
[=15= 提供的一些特定 bean ]
现在,就我个人而言,我会选择 org.springframework.boot:spring-boot-dependencies
,因为 Spring Boot 成熟,拥有一个重要且活跃的社区并且经常更新。
参见spring-boot github。
spring-io/platform.