Spring Boot隐式使用Spring IO? [英] Spring Boot uses Spring IO implicitly?

查看:132
本文介绍了Spring Boot隐式使用Spring IO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得Spring IO和Spring Boot的所有好处.我知道Spring IO比Spring Boot大一些.我了解到,Spring IO的主要关注点是集成,通过Spring平台解决许多框架和组件之间的冲突,而Spring Boot的主要关注点是创建使用Spring平台的更简单快捷的方法,但是我真正想要的是要知道的是:当我仅使用Spring Boot时,在所有这种pom层次结构中,您将在这种pom结构的继承水平上使用Spring IO?

I want to get all benefits of Spring IO and Spring Boot. I understood that Spring IO is something larger than Spring Boot. I understood that the main Spring IO concern is about integration, solve conflicts between a lot of frameworks and components with spring platform, and the main concern about Spring Boot is to create a simpler and quicker way to use spring platform, but what I really want to know is: When I'm using just Spring Boot, in all this pom hierarchy, you will be using Spring IO in some level of this heritage of pom structure?

如果答案是否定的,那么同时使用这两项计划的最佳方法是什么?他们两个都建议使用父pom,或导入pom(使用bom的概念)作为依赖管理.我应该使用一个作为父项,另一个用作bom(作为依赖项管理导入)吗?

If the answer is no, what is the best way to use both initiatives? Both of them recommend to use a parent pom, or import the pom (using the concept of bom) as dependecy-management. Should I use one as parent and other as bom (importing as dependency management)?

推荐答案

如注释中所述,Spring IO和Spring Boot具有不同的关注点,但它们可以很好地配合使用.

As mentioned in comments, Spring IO and Spring Boot have different focus, but they play nicely together.

实际上,Spring IO bom是从Spring Boot继承的,它是继承,因此将Spring IO作为父级就足够了,您可以同时拥有这两项的所有好处(例如mvn明智的默认设置).有关更多详细信息,请参见

In fact, Spring IO bom inherits from Spring Boot's one, so it is sufficient to Spring IO as parent and you can have all benefits of both (like mvn sensible defaults). For more detail see my another answer.

使用Spring IO的唯一缺点"是它可能比最新的Spring Boot版本稍微落后一些,但是如果您对此感到满意,则可以享受更多的托管依赖项.

Only "disadvantage" of using Spring IO is that it might be a little bit "behind" of latest Spring Boot version but if you are okey with it you can enjoy more managed dependencies.

这篇关于Spring Boot隐式使用Spring IO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆