Home > Enterprise >  How to figure out why some file was deleted from spring-boot repository?
How to figure out why some file was deleted from spring-boot repository?

Time:06-01

I have been updating my spring boot application from v2.2.1.RELEASE to v2.6.6 and I've noticed that one of configurations (HealthIndicatorAutoConfiguration for instance) doesn't belong to spring boot repository any more. Please, explain me how to figure out why authors delete it and what should I use instead? And what should I do if I can't find such information in release notes?

P.S. Configurations also disappeared from other spring repositories (e.g. Spring Cloud Sleuth):

  • TraceAutoConfiguration.class
  • SleuthTagPropagationAutoConfiguration.class
  • TraceWebServletAutoConfiguration.class
  • SleuthLogAutoConfiguration.class

CodePudding user response:

If you upgrade in stages, going from 2.2.x -> 2.3.x -> 2.4.x -> 2.5.x -> 2.6.x rather than jumping from 2.2 straight to 2.6, you'll see that the classes are deprecated for a period of time before they're removed. The deprecation message should point to a replacement. For example, HealthIndicatorAutoConfiguration was deprecated in 2.2.0 in favor of HealthContributorAutoConfiguration.

  • Related