Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enum Classes
  • Record Classes
  • Annotation Interfaces
  • Methods
  • Constructors
  • Enum Constants
  • Annotation Interface Elements
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.boot.actuate.autoconfigure.cloudfoundry.CloudFoundryWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List<PathMapper>, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableWebEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of CloudFoundryWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, Collection, Collection, Collection)
    org.springframework.boot.actuate.autoconfigure.endpoint.expose.EndpointExposure.CLOUD_FOUNDRY
    since 3.4.0 for removal in 4.0.0 in favor of using EndpointExposure.WEB
    org.springframework.boot.actuate.autoconfigure.endpoint.web.reactive.WebFluxEndpointManagementContextConfiguration.controllerEndpointHandlerMapping(ControllerEndpointsSupplier, CorsEndpointProperties, WebEndpointProperties, EndpointAccessResolver)
    org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration.controllerEndpointHandlerMapping(ControllerEndpointsSupplier, CorsEndpointProperties, WebEndpointProperties, EndpointAccessResolver)
    org.springframework.boot.actuate.autoconfigure.metrics.export.otlp.OtlpMetricsProperties.getResourceAttributes()
    org.springframework.boot.actuate.autoconfigure.metrics.export.otlp.OtlpMetricsProperties.setResourceAttributes(Map<String, String>)
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties.getHistogramFlavor()
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties.HistogramFlavor
    since 3.3.0 for removal in 3.5.0
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusSimpleclientMetricsExportAutoConfiguration
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusMetricsExportAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.OpenTelemetryAutoConfiguration
    since 3.4.0 in favor of OpenTelemetryTracingAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.otlp.OtlpAutoConfiguration
    since 3.4.0 in favor of OtlpTracingAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.otlp.OtlpTracingConnectionDetails.getUrl()
    since 3.4.0 for removal in 4.0.0 in favor of OtlpTracingConnectionDetails.getUrl(Transport)
    org.springframework.boot.actuate.autoconfigure.tracing.prometheus.PrometheusSimpleclientExemplarsAutoConfiguration
    since 3.3.0 for removal in 3.5.0
    org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinRestTemplateBuilderCustomizer
    since 3.3.0 for removal in 3.5.0 in favor of ZipkinHttpClientBuilderCustomizer
    org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinWebClientBuilderCustomizer
    since 3.3.0 for removal in 3.5.0 in favor of ZipkinHttpClientBuilderCustomizer
    org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint(EndpointId, boolean, Collection<? extends O>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractExposableEndpoint(EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint.isEnableByDefault()
    org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?>, Object, EndpointId, boolean, Collection<? extends O>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.annotation.Endpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of Endpoint.defaultAccess()
    org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<E>>)
    since 3.4.0 for removal in 4.0.0 in favor of EndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpoint(Object, EndpointId, boolean, Collection<O>)
    since 3.4.0 for removal in 4.0.0 in favor of EndpointDiscoverer.createEndpoint(Object, EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.ExposableEndpoint.isEnableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of ExposableEndpoint.getDefaultAccess()
    org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of
    org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableJmxEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of JmxEndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointDiscoverer
    since 3.3.0 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier
    since 3.3.3 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.ExposableControllerEndpoint
    since 3.3.3 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.RestControllerEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of WebEndpoint.defaultAccess()
    org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List<PathMapper>, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableWebEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.web.EndpointServlet
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.ExposableServletEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.reactive.ControllerEndpointHandlerMapping
    since 3.3.5 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping
    since 3.3.5 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
    since 3.3.0 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint(PrometheusRegistry)
    since 3.3.1 for removal in 3.5.0 in favor of PrometheusScrapeEndpoint(PrometheusRegistry, Properties)
    org.springframework.boot.actuate.metrics.export.prometheus.PrometheusSimpleclientScrapeEndpoint
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusScrapeEndpoint
    org.springframework.boot.actuate.metrics.export.prometheus.TextOutputFormat
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusOutputFormat
    org.springframework.boot.actuate.session.SessionsEndpoint(FindByIndexNameSessionRepository<? extends Session>)
    since 3.3.0 for removal in 3.5.0 in favor of SessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)
    org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner.validate()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleKerberosCacheFile()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleSqlplus()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleSqlplusWarn()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleWalletLocation()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getSqlServerKerberosLoginFile()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.isCleanOnValidationError()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setCleanOnValidationError(boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleKerberosCacheFile(String)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleSqlplus(Boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleSqlplusWarn(Boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleWalletLocation(String)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setSqlServerKerberosLoginFile(String)
    org.springframework.boot.autoconfigure.gson.GsonProperties.getLenient()
    org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer.setObservationRegistry(ObservationRegistry)
    since 3.3.10 for removal in 4.0.0 as this should have been package private
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.getAcknowledgeMode()
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.getConcurrency()
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.setAcknowledgeMode(AcknowledgeMode)
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.setConcurrency(Integer)
    org.springframework.boot.autoconfigure.jooq.JooqExceptionTranslator
    since 3.3.0 for removal in 3.5.0 in favor of ExceptionTranslatorExecuteListener.DEFAULT or ExceptionTranslatorExecuteListener.of(java.util.function.Function<org.jooq.ExecuteContext, org.springframework.jdbc.support.SQLExceptionTranslator>)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getDelay()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getMaxDelay()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getMultiplier()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.isRandomBackOff()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setDelay(Duration)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setMaxDelay(Duration)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setMultiplier(double)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setRandomBackOff(boolean)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Ssl.buildProperties()
    org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.getVendorProperties()
    since 3.4.4 for removal in 4.0.0 in favor of JpaBaseConfiguration.getVendorProperties(DataSource)
    org.springframework.boot.autoconfigure.web.ServerProperties.Undertow.isAllowEncodedSlash()
    org.springframework.boot.autoconfigure.web.ServerProperties.Undertow.setAllowEncodedSlash(boolean)
    org.springframework.boot.buildpack.platform.docker.DockerApi.ImageApi.exportLayerFiles(ImageReference, IOBiConsumer<String, Path>)
    since 3.2.6 for removal in 3.5.0 in favor of DockerApi.ImageApi.exportLayers(ImageReference, IOBiConsumer)
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.getCurrent()
    since 3.3.7 for removal in 3.5.0 in favor of ProgressUpdateEvent.ProgressDetail.asPercentage()
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.getTotal()
    since 3.3.7 for removal in 3.5.0 in favor of ProgressUpdateEvent.ProgressDetail.asPercentage()
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.isEmpty(ProgressUpdateEvent.ProgressDetail)
    since 3.3.7 for removal in 3.5.0
    org.springframework.boot.context.annotation.Configurations.sort(Collection<Class<?>>)
    since 3.4.0 for removal in 4.0.0 in favor of Configurations(UnaryOperator, Collection, Function)
    org.springframework.boot.io.ApplicationResourceLoader()
    since 3.4.0 for removal in 4.0.0 in favor of ApplicationResourceLoader.get()
    org.springframework.boot.io.ApplicationResourceLoader(ClassLoader)
    since 3.4.0 for removal in 4.0.0 in favor of ApplicationResourceLoader.get(ClassLoader)
    org.springframework.boot.jdbc.HikariCheckpointRestoreLifecycle(DataSource)
    since 3.4.0 for removal in 4.0.0 in favor of HikariCheckpointRestoreLifecycle(DataSource, ConfigurableApplicationContext)
    org.springframework.boot.logging.logback.ApplicationNameConverter
    since 3.4.0 for removal in 4.0.0 in favor of EnclosedInSquareBracketsConverter
    org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder(JpaVendorAdapter, Map<String, ?>, PersistenceUnitManager)
    since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder(JpaVendorAdapter, Function, PersistenceUnitManager)
    org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder(JpaVendorAdapter, Map<String, ?>, PersistenceUnitManager, URL)
    since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder(JpaVendorAdapter, Function, PersistenceUnitManager, URL)
    org.springframework.boot.ResourceBanner.getApplicationVersion(Class<?>)
    since 3.4.0 for removal in 4.0.0
    org.springframework.boot.SpringApplication.logStartupInfo(boolean)
    since 3.4.0 for removal in 4.0.0 in favor of SpringApplication.logStartupInfo(ConfigurableApplicationContext)
    org.springframework.boot.test.autoconfigure.ConditionReportApplicationContextFailureProcessor
    in 3.2.11 for removal in 4.0.0
    org.springframework.boot.test.context.runner.AbstractApplicationContextRunner(Supplier<C>, Function<AbstractApplicationContextRunner.RunnerConfiguration<C>, SELF>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractApplicationContextRunner(Function, Supplier, Class...)
    org.springframework.boot.test.mock.mockito.MockBean
    since 3.4.0 for removal in 4.0.0 in favor of MockitoBean
    org.springframework.boot.test.mock.mockito.MockBeans
    since 3.4.0 for removal in 4.0.0 in favor of MockitoBean
    org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
    since 3.4.0 for removal in 4.0.0 in favor of Spring Framework's support for MockitoBean and MockitoSpyBean.
    org.springframework.boot.test.mock.mockito.MockReset
    since 3.4.0 for removal in 4.0.0 in favor of MockReset
    org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
    since 3.4.0 for removal in 4.0.0 in favor of MockitoResetTestExecutionListener
    org.springframework.boot.test.mock.mockito.SpringBootMockResolver
    since 3.4.0 for removal in 4.0.0 in favor of Spring Framework's MockitoBean and MockitoSpyBean
    org.springframework.boot.test.mock.mockito.SpyBean
    since 3.4.0 for removal in 4.0.0 in favor of MockitoSpyBean
    org.springframework.boot.test.mock.mockito.SpyBeans
    since 3.4.0 for removal in 4.0.0 in favor of MockitoSpyBean
    org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory(TestRestTemplate.HttpClientOption[], ClientHttpRequestFactorySettings)
    since 3.4.0 for removal in 4.0.0 in favor of CustomHttpComponentsClientHttpRequestFactory(HttpClientOption[], ClientHttpRequestFactorySettings)
    org.springframework.boot.testcontainers.lifecycle.BeforeTestcontainerUsedEvent
    since 3.4.0 for removal in 4.0.0 in favor of property registration using a DynamicPropertyRegistrar bean that injects the Container from which the properties will be sourced.
    org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
    since 3.4.0 for removal in 4.0.0 in favor of declaring one or more DynamicPropertyRegistrar beans.
    org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails.setApplicationContext(ApplicationContext)
    org.springframework.boot.web.client.ClientHttpRequestFactories
    since 3.4.0 for removal in 4.0.0 in favor of ClientHttpRequestFactoryBuilder
    org.springframework.boot.web.client.ClientHttpRequestFactorySettings
    since 3.4.0 for removal in 4.0.0 in favor of ClientHttpRequestFactorySettings
    org.springframework.boot.web.client.RestTemplateBuilder.requestFactory(Function<ClientHttpRequestFactorySettings, ClientHttpRequestFactory>)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.requestFactoryBuilder(ClientHttpRequestFactoryBuilder)
    org.springframework.boot.web.client.RestTemplateBuilder.setConnectTimeout(Duration)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.connectTimeout(Duration)
    org.springframework.boot.web.client.RestTemplateBuilder.setReadTimeout(Duration)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.readTimeout(Duration)
    org.springframework.boot.web.client.RestTemplateBuilder.setSslBundle(SslBundle)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.sslBundle(SslBundle)
    org.springframework.boot.webservices.client.HttpWebServiceMessageSenderBuilder
    since 3.4.0 in favor of WebServiceMessageSenderFactory.http(ClientHttpRequestFactorySettings)
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinRestTemplateBuilderCustomizer
    since 3.3.0 for removal in 3.5.0 in favor of ZipkinHttpClientBuilderCustomizer
    org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinWebClientBuilderCustomizer
    since 3.3.0 for removal in 3.5.0 in favor of ZipkinHttpClientBuilderCustomizer
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier
    since 3.3.3 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.ExposableControllerEndpoint
    since 3.3.3 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.ExposableServletEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
  • Deprecated Classes
    Class
    Description
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusSimpleclientMetricsExportAutoConfiguration
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusMetricsExportAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.OpenTelemetryAutoConfiguration
    since 3.4.0 in favor of OpenTelemetryTracingAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.otlp.OtlpAutoConfiguration
    since 3.4.0 in favor of OtlpTracingAutoConfiguration
    org.springframework.boot.actuate.autoconfigure.tracing.prometheus.PrometheusSimpleclientExemplarsAutoConfiguration
    since 3.3.0 for removal in 3.5.0
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointDiscoverer
    since 3.3.0 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.EndpointServlet
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.reactive.ControllerEndpointHandlerMapping
    since 3.3.5 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping
    since 3.3.5 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
    since 3.3.0 in favor of @Endpoint and @WebEndpoint support
    org.springframework.boot.actuate.metrics.export.prometheus.PrometheusSimpleclientScrapeEndpoint
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusScrapeEndpoint
    org.springframework.boot.autoconfigure.jooq.JooqExceptionTranslator
    since 3.3.0 for removal in 3.5.0 in favor of ExceptionTranslatorExecuteListener.DEFAULT or ExceptionTranslatorExecuteListener.of(java.util.function.Function<org.jooq.ExecuteContext, org.springframework.jdbc.support.SQLExceptionTranslator>)
    org.springframework.boot.logging.logback.ApplicationNameConverter
    since 3.4.0 for removal in 4.0.0 in favor of EnclosedInSquareBracketsConverter
    org.springframework.boot.test.autoconfigure.ConditionReportApplicationContextFailureProcessor
    in 3.2.11 for removal in 4.0.0
    org.springframework.boot.test.mock.mockito.MockitoPostProcessor
    since 3.4.0 for removal in 4.0.0 in favor of Spring Framework's MockitoBean and MockitoSpyBean support
    org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
    since 3.4.0 for removal in 4.0.0 in favor of Spring Framework's support for MockitoBean and MockitoSpyBean.
    org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
    since 3.4.0 for removal in 4.0.0 in favor of MockitoResetTestExecutionListener
    org.springframework.boot.test.mock.mockito.SpringBootMockResolver
    since 3.4.0 for removal in 4.0.0 in favor of Spring Framework's MockitoBean and MockitoSpyBean
    org.springframework.boot.testcontainers.lifecycle.BeforeTestcontainerUsedEvent
    since 3.4.0 for removal in 4.0.0 in favor of property registration using a DynamicPropertyRegistrar bean that injects the Container from which the properties will be sourced.
    org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
    since 3.4.0 for removal in 4.0.0 in favor of declaring one or more DynamicPropertyRegistrar beans.
    org.springframework.boot.web.client.ClientHttpRequestFactories
    since 3.4.0 for removal in 4.0.0 in favor of ClientHttpRequestFactoryBuilder
    org.springframework.boot.webservices.client.HttpWebServiceMessageSenderBuilder
    since 3.4.0 in favor of WebServiceMessageSenderFactory.http(ClientHttpRequestFactorySettings)
  • Deprecated Enum Classes
    Enum Class
    Description
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties.HistogramFlavor
    since 3.3.0 for removal in 3.5.0
    org.springframework.boot.actuate.metrics.export.prometheus.TextOutputFormat
    since 3.3.0 for removal in 3.5.0 in favor of PrometheusOutputFormat
    org.springframework.boot.test.mock.mockito.MockReset
    since 3.4.0 for removal in 4.0.0 in favor of MockReset
  • Deprecated Record Classes
    Record Class
    Description
    org.springframework.boot.web.client.ClientHttpRequestFactorySettings
    since 3.4.0 for removal in 4.0.0 in favor of ClientHttpRequestFactorySettings
  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.RestControllerEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpoint
    since 3.3.0 in favor of @Endpoint and @WebEndpoint
    org.springframework.boot.test.mock.mockito.MockBean
    since 3.4.0 for removal in 4.0.0 in favor of MockitoBean
    org.springframework.boot.test.mock.mockito.MockBeans
    since 3.4.0 for removal in 4.0.0 in favor of MockitoBean
    org.springframework.boot.test.mock.mockito.SpyBean
    since 3.4.0 for removal in 4.0.0 in favor of MockitoSpyBean
    org.springframework.boot.test.mock.mockito.SpyBeans
    since 3.4.0 for removal in 4.0.0 in favor of MockitoSpyBean
  • Deprecated Methods
    Method
    Description
    org.springframework.boot.actuate.autoconfigure.endpoint.web.reactive.WebFluxEndpointManagementContextConfiguration.controllerEndpointHandlerMapping(ControllerEndpointsSupplier, CorsEndpointProperties, WebEndpointProperties, EndpointAccessResolver)
    org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration.controllerEndpointHandlerMapping(ControllerEndpointsSupplier, CorsEndpointProperties, WebEndpointProperties, EndpointAccessResolver)
    org.springframework.boot.actuate.autoconfigure.metrics.export.otlp.OtlpMetricsProperties.getResourceAttributes()
    org.springframework.boot.actuate.autoconfigure.metrics.export.otlp.OtlpMetricsProperties.setResourceAttributes(Map<String, String>)
    org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties.getHistogramFlavor()
    org.springframework.boot.actuate.autoconfigure.tracing.otlp.OtlpTracingConnectionDetails.getUrl()
    since 3.4.0 for removal in 4.0.0 in favor of OtlpTracingConnectionDetails.getUrl(Transport)
    org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint.isEnableByDefault()
    org.springframework.boot.actuate.endpoint.annotation.Endpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of Endpoint.defaultAccess()
    org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpoint(Object, EndpointId, boolean, Collection<O>)
    since 3.4.0 for removal in 4.0.0 in favor of EndpointDiscoverer.createEndpoint(Object, EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.ExposableEndpoint.isEnableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of ExposableEndpoint.getDefaultAccess()
    org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of
    org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of WebEndpoint.defaultAccess()
    org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner.validate()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleKerberosCacheFile()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleSqlplus()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleSqlplusWarn()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getOracleWalletLocation()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.getSqlServerKerberosLoginFile()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.isCleanOnValidationError()
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setCleanOnValidationError(boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleKerberosCacheFile(String)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleSqlplus(Boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleSqlplusWarn(Boolean)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setOracleWalletLocation(String)
    org.springframework.boot.autoconfigure.flyway.FlywayProperties.setSqlServerKerberosLoginFile(String)
    org.springframework.boot.autoconfigure.gson.GsonProperties.getLenient()
    org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer.setObservationRegistry(ObservationRegistry)
    since 3.3.10 for removal in 4.0.0 as this should have been package private
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.getAcknowledgeMode()
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.getConcurrency()
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.setAcknowledgeMode(AcknowledgeMode)
    org.springframework.boot.autoconfigure.jms.JmsProperties.Listener.setConcurrency(Integer)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getDelay()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getMaxDelay()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.getMultiplier()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.isRandomBackOff()
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setDelay(Duration)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setMaxDelay(Duration)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setMultiplier(double)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Retry.Topic.setRandomBackOff(boolean)
    org.springframework.boot.autoconfigure.kafka.KafkaProperties.Ssl.buildProperties()
    org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.getVendorProperties()
    since 3.4.4 for removal in 4.0.0 in favor of JpaBaseConfiguration.getVendorProperties(DataSource)
    org.springframework.boot.autoconfigure.web.ServerProperties.Undertow.isAllowEncodedSlash()
    org.springframework.boot.autoconfigure.web.ServerProperties.Undertow.setAllowEncodedSlash(boolean)
    org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.EnableWebMvcConfiguration.themeResolver()
    org.springframework.boot.buildpack.platform.docker.DockerApi.ImageApi.exportLayerFiles(ImageReference, IOBiConsumer<String, Path>)
    since 3.2.6 for removal in 3.5.0 in favor of DockerApi.ImageApi.exportLayers(ImageReference, IOBiConsumer)
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.getCurrent()
    since 3.3.7 for removal in 3.5.0 in favor of ProgressUpdateEvent.ProgressDetail.asPercentage()
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.getTotal()
    since 3.3.7 for removal in 3.5.0 in favor of ProgressUpdateEvent.ProgressDetail.asPercentage()
    org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail.isEmpty(ProgressUpdateEvent.ProgressDetail)
    since 3.3.7 for removal in 3.5.0
    org.springframework.boot.context.annotation.Configurations.sort(Collection<Class<?>>)
    since 3.4.0 for removal in 4.0.0 in favor of Configurations(UnaryOperator, Collection, Function)
    org.springframework.boot.ResourceBanner.getApplicationVersion(Class<?>)
    since 3.4.0 for removal in 4.0.0
    org.springframework.boot.SpringApplication.logStartupInfo(boolean)
    since 3.4.0 for removal in 4.0.0 in favor of SpringApplication.logStartupInfo(ConfigurableApplicationContext)
    org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider.assertThat()
    to prevent accidental use. Prefer standard AssertJ assertThat(context)... calls instead.
    org.springframework.boot.test.json.JsonContent.assertThat()
    to prevent accidental use. Prefer standard AssertJ assertThat(context)... calls instead.
    org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails.setApplicationContext(ApplicationContext)
    org.springframework.boot.web.client.RestTemplateBuilder.requestFactory(Function<ClientHttpRequestFactorySettings, ClientHttpRequestFactory>)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.requestFactoryBuilder(ClientHttpRequestFactoryBuilder)
    org.springframework.boot.web.client.RestTemplateBuilder.setConnectTimeout(Duration)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.connectTimeout(Duration)
    org.springframework.boot.web.client.RestTemplateBuilder.setReadTimeout(Duration)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.readTimeout(Duration)
    org.springframework.boot.web.client.RestTemplateBuilder.setSslBundle(SslBundle)
    since 3.4.0 for removal in 4.0.0 in favor of RestTemplateBuilder.sslBundle(SslBundle)
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.boot.actuate.autoconfigure.cloudfoundry.CloudFoundryWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List<PathMapper>, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableWebEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of CloudFoundryWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint(EndpointId, boolean, Collection<? extends O>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractExposableEndpoint(EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?>, Object, EndpointId, boolean, Collection<? extends O>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)
    org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<E>>)
    since 3.4.0 for removal in 4.0.0 in favor of EndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableJmxEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of JmxEndpointDiscoverer(ApplicationContext, ParameterValueMapper, Collection, Collection, Collection)
    org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List<PathMapper>, Collection<OperationInvokerAdvisor>, Collection<EndpointFilter<ExposableWebEndpoint>>)
    since 3.4.0 for removal in 4.0.0 in favor of WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)
    org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint(PrometheusRegistry)
    since 3.3.1 for removal in 3.5.0 in favor of PrometheusScrapeEndpoint(PrometheusRegistry, Properties)
    org.springframework.boot.actuate.session.SessionsEndpoint(FindByIndexNameSessionRepository<? extends Session>)
    since 3.3.0 for removal in 3.5.0 in favor of SessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)
    org.springframework.boot.io.ApplicationResourceLoader()
    since 3.4.0 for removal in 4.0.0 in favor of ApplicationResourceLoader.get()
    org.springframework.boot.io.ApplicationResourceLoader(ClassLoader)
    since 3.4.0 for removal in 4.0.0 in favor of ApplicationResourceLoader.get(ClassLoader)
    org.springframework.boot.jdbc.HikariCheckpointRestoreLifecycle(DataSource)
    since 3.4.0 for removal in 4.0.0 in favor of HikariCheckpointRestoreLifecycle(DataSource, ConfigurableApplicationContext)
    org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder(JpaVendorAdapter, Map<String, ?>, PersistenceUnitManager)
    since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder(JpaVendorAdapter, Function, PersistenceUnitManager)
    org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder(JpaVendorAdapter, Map<String, ?>, PersistenceUnitManager, URL)
    since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder(JpaVendorAdapter, Function, PersistenceUnitManager, URL)
    org.springframework.boot.test.context.runner.AbstractApplicationContextRunner(Supplier<C>, Function<AbstractApplicationContextRunner.RunnerConfiguration<C>, SELF>)
    since 3.4.0 for removal in 4.0.0 in favor of AbstractApplicationContextRunner(Function, Supplier, Class...)
    org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory(TestRestTemplate.HttpClientOption[], ClientHttpRequestFactorySettings)
    since 3.4.0 for removal in 4.0.0 in favor of CustomHttpComponentsClientHttpRequestFactory(HttpClientOption[], ClientHttpRequestFactorySettings)
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.boot.actuate.autoconfigure.endpoint.expose.EndpointExposure.CLOUD_FOUNDRY
    since 3.4.0 for removal in 4.0.0 in favor of using EndpointExposure.WEB
  • Deprecated Annotation Interface Elements
    Annotation Interface Element
    Description
    org.springframework.boot.actuate.endpoint.annotation.Endpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of Endpoint.defaultAccess()
    org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of
    org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint.enableByDefault()
    since 3.4.0 for removal in 4.0.0 in favor of WebEndpoint.defaultAccess()