sofastack / sofa-boot

SOFABoot is a framework that enhances Spring Boot and fully compatible with it, provides readiness check, class isolation, etc.
https://www.sofastack.tech/sofa-boot/docs/Home
Apache License 2.0
4.95k stars 1.26k forks source link

dependency-check检查出的依赖漏洞如何进行修复? #965

Closed StringKe closed 1 year ago

StringKe commented 2 years ago

通过依赖检查检查,会有一些 Blocker 我如何修复它们?

最简单的办法是直接升级对应的版本,比如 spring-boot-starter-web -> spring-boot-starter-json -> jackson-databind 这样的依赖链,spring-boot-starter-web 的版本由 sofaboot-dependencies -> sofa-boot-build 决定的,也不是很好的升级版本怕引起 sofastack 中其他组件出现错误。

来自 阿里 codeup 提供的依赖检查

CleanShot 2022-05-18 at 17 34 49@2x
ujjboy commented 2 years ago

image

在自己的 pom.xml 里替换这个属性即可。

<jackson-bom.version>2.11.4</jackson-bom.version>