“spring-boot-starter-integration”依赖项的目的是什么?

Vim*_*vid 5 java spring spring-integration spring-boot spring-boot-starter

我正在重构一个实现 Spring 集成的遗留 Spring boot 项目。在其中一个模块中,我删除了以下依赖项来修复 CVE-2019-3772 漏洞。这些项目仍然可以编译和运行,没有任何失败。我检查了源代码,没有任何导入使用此依赖项。

那么,这个依赖有什么用呢?

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-integration</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)

尽管如此,该模块仍然使用以下集成依赖项。

<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-security</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-http</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)

Gar*_*ell 6

启动器只需引入spring-integraition-corespring-aop,它们也是其他 Spring 集成依赖项的传递依赖项;所以这是多余的。