栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如果您正在使用Spring Platform Bom,则应该使用父项吗?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如果您正在使用Spring Platform Bom,则应该使用父项吗?

我个人更喜欢以

platform-bom
父母身份使用,即

<parent>    <groupId>io.spring.platform</groupId>    <artifactId>platform-bom</artifactId>    <version>1.1.1.RELEASE</version>    <relativePath /></parent><dependencies>    <dependency>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-web</artifactId>    </dependency></dependencies>

这样,我不必定义spring-boot版本号,它会随着spring平台的较新版本自动更新,并且我不必担心任何不一致之处。

有关所有托管依赖项的完整列表,请参见http://docs.spring.io/platform/docs/1.1.1.RELEASE/reference/htmlsingle/#appendix-
dependency-
versions

编辑 :正如安迪·威尔金森(Andy Wilkinson)指出的那样,spring平台继承了

spring-boot-starter-parent
所有“合理的默认值”,如http://docs.spring.io/spring-
boot/docs/1.2.1.RELEASE/reference/htmlsingle/#using-
启动专家也
适用。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/385261.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号