我一直在將我的 Spring Boot 應用程式從 v2.2.1.RELEASE 更新到 v2.6.6,并且我注意到其中一個配置(例如 HealthIndicatorAutoConfiguration)不再屬于 Spring Boot 存盤庫。請解釋一下如何弄清楚作者為什么洗掉它以及我應該改用什么?如果在發行說明中找不到此類資訊,我該怎么辦?
PS 配置也從其他 spring 存盤庫中消失了(例如 Spring Cloud Sleuth):
- TraceAutoConfiguration.class
- SleuthTagPropagationAutoConfiguration.class
- TraceWebServletAutoConfiguration.class
- SleuthLogAutoConfiguration.class
uj5u.com熱心網友回復:
如果您分階段升級,從 2.2.x -> 2.3.x -> 2.4.x -> 2.5.x -> 2.6.x 而不是從 2.2 直接跳到 2.6,您會看到這些類已被棄用在他們被移除之前的一段時間。棄用訊息應指向替換。例如,在 2.2.0 中HealthIndicatorAutoConfiguration已棄用,取而代之的是HealthContributorAutoConfiguration.
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/483652.html
上一篇:Camel,公共靜態變數和處理器
