我更新了依赖项spring流,以解决spring-cloud-function中的漏洞问题,该上下文是以下的子编译依赖项:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
<version>3.2.3</version>
</dependency>但是它没有更新spring云功能上下文。而且这个依赖项在我的pom.xml中没有显式地使用
有没有办法这么做。
发布于 2022-05-11 11:58:48
您不应该手动管理依赖关系,而应该让Spring依赖管理机制来做到这一点。因此,您所需要的只是升级spring云的BOM依赖关系,这将确保所有兼容的依赖关系。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>此外,除非您使用spring-cloud-function-web,否则无论如何您都不会受到此漏洞的影响。
https://stackoverflow.com/questions/72200580
复制相似问题