rewrite-spring icon indicating copy to clipboard operation
rewrite-spring copied to clipboard

Deprecations in Spring Boot 3.2.0

Open timtebeek opened this issue 2 years ago • 0 comments

Deprecations in Spring Boot 3.2.0

Spring Boot 3.2 comes with deprecations, that while not required to upgrade, would still be good to cover with recipes for gradual adoption ahead of Spring Boot 3.3 and removal in 3.4. https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2.0-Release-Notes#deprecations-in-spring-boot-320

  • [x] Deprecated management.metrics.tags., please use management.observations.key-values. instead.
  • [x] Flyway properties that are managed by an extension have moved to a dedicated namespace. As a result, flyway.oracle* properties have moved to flyway.oracle.*. Similarly, the spring.flyway.sql-server-kerberos-login-file has moved to spring.flyway.sqlserver.kerberos-login-file.
  • [x] The configuration property management.otlp.metrics.export.resource-attributes has been deprecated in favor of the new management.opentelemetry.resource-attributes.
  • [x] Configuration property spring.jms.listener.concurrency with replacement spring.jms.listener.min-concurrency.
  • [x] Configuration property spring.jms.listener.acknowledge-mode with replacement spring.jms.listener.session.acknowledge-mode.
  • [x] TaskExecutorBuilder has been deprecated in favor of ThreadPoolTaskExecutorBuilder.
  • [x] TaskSchedulerBuilder has been deprecated in favor of ThreadPoolTaskSchedulerBuilder.
  • [x] TaskExecutorCustomizer has been deprecated in favor of ThreadPoolTaskExecutorCustomizer.
  • [x] PlatformTransactionManagerCustomizer with replacement TransactionManagerCustomizer.
  • [ ] TransactionManagerCustomizers(Collection extends PlatformTransactionManagerCustomizer>>) with replacement TransactionManagerCustomizers#of(Collection extends TransactionManagerCustomizer>>).
  • [ ] Some outdated constructors in PemSslStoreBundle and the certificate accessor in PemSslStoreDetails.
  • [ ] Some outdated constructors in NettyWebServer
  • [ ] OkHttp 3 Support has been deprecated in favor of OkHttp 4: https://github.com/openrewrite/rewrite-okhttp
  • [ ] Most constants defined in LoggingSystemProperties and LogbackLoggingSystemProperties have been deprecated in favor of enum values.
  • [ ] Support for enabled request buffering in ClientHttpRequestFactorySettings and RestTemplateBuilder has been deprecated. While the API remains in deprecated form, configuring it will have no effect following similar changes in Spring Framework 6.1.
  • [ ] Registering additional ApplicationContextInitializer using the context.initializer.classes environment property is deprecated in favor of registering each delegate programatically or in spring.factories.
  • [ ] Registering additional ApplicationListener using the context.listener.classes environment property is deprecated in favor of registering each delegate programatically or in spring.factories.
  • [ ] Support for InfluxDB has been deprecated in favor of the new InfluxDB Java client and its own Spring Boot integration.
  • [ ] DelegatingApplicationContextInitializer and DelegatingApplicationListener as property based initialization is no longer recommended.

timtebeek avatar Nov 23 '23 15:11 timtebeek