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

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Exceptions
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar(List<String>, List<String>, List<String>)
    as of 6.0.12 in favor of the builder
    org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.registerHints(ResourceHints, ClassLoader)
    org.springframework.beans.factory.aot.BeanInstanceSupplier.withGenerator(ThrowingSupplier<T>)
    in favor of BeanInstanceSupplier.withGenerator(ThrowingFunction)
    org.springframework.cache.jcache.interceptor.JCacheOperationSourcePointcut
    since 6.0.10, as it is not used by the framework anymore
    org.springframework.context.index.CandidateComponentsIndex
    as of 6.1, in favor of the AOT engine.
    org.springframework.context.index.CandidateComponentsIndexLoader
    as of 6.1, in favor of the AOT engine.
    org.springframework.context.index.processor.CandidateComponentsIndexer
    as of 6.1, in favor of the AOT engine.
    org.springframework.http.client.AbstractClientHttpResponse
    as of 6.0, with no direct replacement; scheduled for removal in 6.2
    org.springframework.http.client.ClientHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ClientHttpResponse.getStatusCode(); scheduled for removal in 6.2
    org.springframework.http.client.HttpComponentsClientHttpRequestFactory.setBufferRequestBody(boolean)
    since 6.1 requests are never buffered, as if this property is false
    org.springframework.http.client.observation.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.
    org.springframework.http.client.OkHttp3ClientHttpRequestFactory
    since 6.1, in favor of other ClientHttpRequestFactory implementations; scheduled for removal in 6.2
    org.springframework.http.client.SimpleClientHttpRequestFactory.setBufferRequestBody(boolean)
    since 6.1 requests are never buffered, as if this property is false
    org.springframework.http.client.SimpleClientHttpRequestFactory.setOutputStreaming(boolean)
    as of 6.1 requests are always streamed, as if this property is true
    org.springframework.http.codec.ResourceHttpMessageWriter.addHeaders(ReactiveHttpOutputMessage, Resource, MediaType, Map<String, Object>)
    since 6.1, in favor of ResourceHttpMessageWriter.addDefaultHeaders(ReactiveHttpOutputMessage, Resource, MediaType, Map), for removal = 6.2
    org.springframework.http.MediaType.APPLICATION_GRAPHQL
    as of 6.0.3, in favor of MediaType.APPLICATION_GRAPHQL_RESPONSE
    org.springframework.http.MediaType.APPLICATION_GRAPHQL_VALUE
    as of 6.0.3, in favor of MediaType.APPLICATION_GRAPHQL_RESPONSE_VALUE
    org.springframework.http.MediaType.QUALITY_VALUE_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.http.MediaType.sortByQualityValue(List<MediaType>)
    As of 6.0, with no direct replacement
    org.springframework.http.MediaType.sortBySpecificity(List<MediaType>)
    As of 6.0, in favor of MimeTypeUtils.sortBySpecificity(List)
    org.springframework.http.MediaType.SPECIFICITY_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.transaction.reactive.GenericReactiveTransaction(Object, boolean, boolean, boolean, boolean, Object)
    org.springframework.transaction.support.DefaultTransactionStatus(Object, boolean, boolean, boolean, boolean, Object)
    org.springframework.util.Base64Utils
    as of Spring Framework 6.0.5 in favor of Base64; scheduled for removal in 6.2
    org.springframework.util.MimeType.SpecificityComparator
    As of 6.0, with no direct replacement
    org.springframework.util.MimeTypeUtils.SPECIFICITY_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>)
    in favor of ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object)
    org.springframework.web.bind.MethodArgumentNotValidException.errorsToStringList(List<? extends ObjectError>)
    in favor of using BindErrorUtils and BindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.bind.MethodArgumentNotValidException.errorsToStringList(List<? extends ObjectError>, MessageSource, Locale)
    in favor of BindErrorUtils, to be removed in 6.2
    org.springframework.web.bind.MethodArgumentNotValidException.resolveErrorMessages(MessageSource, Locale)
    in favor of using BindErrorUtils and BindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.bind.MissingServletRequestParameterException(String, String, boolean)
    in favor of MissingServletRequestParameterException(String, MethodParameter, boolean)
    org.springframework.web.bind.support.WebExchangeBindException.resolveErrorMessages(MessageSource, Locale)
    in favor of using BindErrorUtils and WebExchangeBindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.filter.reactive.ServerHttpObservationFilter
    since 6.1 in favor of WebHttpHandlerBuilder.
    org.springframework.web.filter.reactive.ServerWebExchangeContextFilter.get(Context)
    in favor of using ServerWebExchangeContextFilter.getExchange(ContextView) which accepts a ContextView instead of Context, reflecting the fact that the ContextView is needed only for reading.
    org.springframework.web.reactive.function.client.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.
    org.springframework.web.reactive.function.client.ClientRequestObservationContext()
    as of 6.1.2, in favor of ClientRequestObservationContext(ClientRequest.Builder)
    org.springframework.web.reactive.function.client.support.WebClientAdapter.forClient(WebClient)
    in favor of WebClientAdapter.create(WebClient) aligning with other adapter implementations; to be removed in 6.2.
    org.springframework.web.reactive.HandlerResult.applyExceptionHandler(Throwable)
    without a replacement; for internal invocation only, not used as of 6.0
    org.springframework.web.reactive.HandlerResult.hasExceptionHandler()
    in favor of checking via HandlerResult.getExceptionHandler()
    org.springframework.web.reactive.HandlerResult.setExceptionHandler(Function<Throwable, Mono<HandlerResult>>)
    in favor of HandlerResult.setExceptionHandler(DispatchExceptionHandler)
    org.springframework.web.reactive.result.view.freemarker.FreeMarkerView.getTemplate(Locale)
    since 6.1, in favor of FreeMarkerView.lookupTemplate(Locale), to be removed in 6.2
    org.springframework.web.service.invoker.HttpClientAdapter
    in favor of ReactorHttpExchangeAdapter
    org.springframework.web.service.invoker.HttpRequestValues(HttpMethod, URI, String, Map<String, String>, HttpHeaders, MultiValueMap<String, String>, Map<String, Object>, Object)
    in favour of HttpRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object) to be removed in 6.2.
    org.springframework.web.service.invoker.HttpRequestValues.Builder.addRequestPart(String, P, ResolvableType)
    in favor of ReactiveHttpRequestValues.Builder.addRequestPartPublisher(java.lang.String, P, org.springframework.core.ParameterizedTypeReference<T>); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.Builder.createRequestValues(HttpMethod, URI, String, Map<String, String>, HttpHeaders, MultiValueMap<String, String>, Map<String, Object>, Object)
    in favour of HttpRequestValues.Builder.createRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object) to be removed in 6.2.
    org.springframework.web.service.invoker.HttpRequestValues.Builder.setBody(P, ParameterizedTypeReference<T>)
    in favor of ReactiveHttpRequestValues.Builder.setBodyPublisher(P, org.springframework.core.ParameterizedTypeReference<T>); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.getBody()
    in favor of ReactiveHttpRequestValues.getBodyPublisher(); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.getBodyElementType()
    in favor of ReactiveHttpRequestValues.getBodyPublisherElementType(); to be removed in 6.2
    org.springframework.web.service.invoker.HttpServiceProxyFactory.builder(HttpClientAdapter)
    in favor of HttpServiceProxyFactory.builderFor(HttpExchangeAdapter); to be removed in 6.2.
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.blockTimeout(Duration)
    in favor of setting the same directly on the HttpExchangeAdapter
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.clientAdapter(HttpClientAdapter)
    in favor of HttpServiceProxyFactory.Builder.exchangeAdapter(HttpExchangeAdapter); to be removed in 6.2
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.reactiveAdapterRegistry(ReactiveAdapterRegistry)
    in favor of setting the same directly on the HttpExchangeAdapter
    org.springframework.web.servlet.DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean)
    as of 6.1 this property is set to true by default, and should not need to be customized; in effect, DispatcherServlet should always raise NoHandlerFoundException and allow it to be handled through a HandlerExceptionResolver.
    org.springframework.web.servlet.handler.MappedInterceptor.getPathPatterns()
    since 6.1 in favor of MappedInterceptor.getIncludePathPatterns()
    org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleBindException(BindException, HttpHeaders, HttpStatusCode, WebRequest)
    as of 6.0 since ModelAttributeMethodProcessor now raises the MethodArgumentNotValidException subclass instead.
    org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleBindException(BindException, HttpServletRequest, HttpServletResponse, Object)
    as of 6.0 since ModelAttributeMethodProcessor now raises the MethodArgumentNotValidException subclass instead.
    org.springframework.web.util.UriComponentsBuilder.fromHttpRequest(HttpRequest)
    in favor of ForwardedHeaderUtils.adaptFromForwardedHeaders(java.net.URI, org.springframework.http.HttpHeaders); to be removed in 6.2
    org.springframework.web.util.UriComponentsBuilder.parseForwardedFor(HttpRequest, InetSocketAddress)
    in favor of ForwardedHeaderUtils.parseForwardedFor(java.net.URI, org.springframework.http.HttpHeaders, java.net.InetSocketAddress); to be removed in 6.2
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.core.task.AsyncListenableTaskExecutor
    as of 6.0, in favor of AsyncTaskExecutor.submitCompletable(Runnable) and AsyncTaskExecutor.submitCompletable(Callable)
    org.springframework.ui.context.HierarchicalThemeSource
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.ui.context.Theme
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.ui.context.ThemeSource
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.util.concurrent.FailureCallback
    as of 6.0, in favor of CompletableFuture.whenComplete(BiConsumer)
    org.springframework.util.concurrent.ListenableFuture
    as of 6.0, in favor of CompletableFuture
    org.springframework.util.concurrent.ListenableFutureCallback
    as of 6.0, in favor of CompletableFuture.whenComplete(BiConsumer)
    org.springframework.util.concurrent.SuccessCallback
    as of 6.0, in favor of CompletableFuture.whenComplete(BiConsumer)
    org.springframework.web.service.invoker.HttpClientAdapter
    in favor of ReactorHttpExchangeAdapter
    org.springframework.web.servlet.mvc.LastModified
    as of 5.3.9 in favor of using the checkNotModified methods in WebRequest, or from an annotated controller method, returning a ResponseEntity with an "ETag" and/or "Last-Modified" headers set.
    org.springframework.web.servlet.ThemeResolver
    as of 6.0 in favor of using CSS, without direct replacement
  • Deprecated Classes
    Class
    Description
    org.apache.commons.logging.impl.SimpleLog
    in spring-jcl (effectively equivalent to NoOpLog)
    org.apache.commons.logging.LogFactoryService
    since it is only meant to be used in the above-mentioned fallback scenario
    org.springframework.aot.agent.InstrumentedBridgeMethods
    This class should only be used by the runtime-hints agent when instrumenting bytecode and is not considered public API.
    org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
    as of 5.2, along with PropertyPlaceholderConfigurer
    org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
    as of 5.2; use org.springframework.context.support.PropertySourcesPlaceholderConfigurer instead which is more flexible through taking advantage of the Environment and PropertySource mechanisms.
    org.springframework.beans.factory.support.PropertiesBeanDefinitionReader
    as of 5.3, in favor of Spring's common bean definition formats and/or custom reader implementations
    org.springframework.cache.annotation.CachingConfigurerSupport
    as of 6.0 in favor of implementing CachingConfigurer directly
    org.springframework.cache.jcache.config.JCacheConfigurerSupport
    as of 6.0 in favor of implementing JCacheConfigurer directly
    org.springframework.cache.jcache.interceptor.JCacheOperationSourcePointcut
    since 6.0.10, as it is not used by the framework anymore
    org.springframework.cglib.core.TinyBitSet
    org.springframework.context.index.CandidateComponentsIndex
    as of 6.1, in favor of the AOT engine.
    org.springframework.context.index.CandidateComponentsIndexLoader
    as of 6.1, in favor of the AOT engine.
    org.springframework.context.index.processor.CandidateComponentsIndexer
    as of 6.1, in favor of the AOT engine.
    org.springframework.core.Constants
    since 6.1 with no replacement; use an enum, map, or similar custom solution instead
    org.springframework.core.env.JOptCommandLinePropertySource
    since 6.1 with no plans for a replacement
    org.springframework.http.client.AbstractClientHttpResponse
    as of 6.0, with no direct replacement; scheduled for removal in 6.2
    org.springframework.http.client.OkHttp3ClientHttpRequestFactory
    since 6.1, in favor of other ClientHttpRequestFactory implementations; scheduled for removal in 6.2
    org.springframework.http.client.reactive.ReactorResourceFactory
    since 6.1 due to a package change; use ReactorResourceFactory instead.
    org.springframework.jdbc.core.support.JdbcBeanDefinitionReader
    as of 5.3, in favor of Spring's common bean definition formats and/or custom reader implementations
    org.springframework.messaging.handler.invocation.ListenableFutureReturnValueHandler
    as of 6.0, in favor of CompletableFutureReturnValueHandler
    org.springframework.r2dbc.core.Parameter
    since 6.0, use io.r2dbc.spi.Parameter instead.
    org.springframework.scheduling.annotation.AsyncConfigurerSupport
    as of 6.0 in favor of implementing AsyncConfigurer directly
    org.springframework.scheduling.annotation.AsyncResult
    as of 6.0, in favor of CompletableFuture
    org.springframework.transaction.config.JtaTransactionManagerFactoryBean
    as of 6.0, in favor of a straight JtaTransactionManager definition
    org.springframework.transaction.support.TransactionSynchronizationAdapter
    as of 5.3, in favor of the default methods on the TransactionSynchronization interface
    org.springframework.ui.context.support.DelegatingThemeSource
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.ui.context.support.ResourceBundleThemeSource
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.ui.context.support.SimpleTheme
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.ui.context.support.UiApplicationContextUtils
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.util.Base64Utils
    as of Spring Framework 6.0.5 in favor of Base64; scheduled for removal in 6.2
    org.springframework.util.comparator.ComparableComparator
    as of 6.1 in favor of Comparator.naturalOrder()
    org.springframework.util.comparator.NullSafeComparator
    as of 6.1 in favor of Comparator.nullsLast(java.util.Comparator<? super T>) and Comparator.nullsFirst(java.util.Comparator<? super T>)
    org.springframework.util.concurrent.CompletableToListenableFutureAdapter
    as of 6.0, with no concrete replacement
    org.springframework.util.concurrent.FutureAdapter
    as of 6.0, with no concrete replacement
    org.springframework.util.concurrent.ListenableFutureAdapter
    as of 6.0, in favor of CompletableFuture
    org.springframework.util.concurrent.ListenableFutureCallbackRegistry
    as of 6.0, with no concrete replacement
    org.springframework.util.concurrent.ListenableFutureTask
    as of 6.0, with no concrete replacement
    org.springframework.util.concurrent.MonoToListenableFutureAdapter
    as of 6.0, in favor of Mono.toFuture()
    org.springframework.util.concurrent.SettableListenableFuture
    as of 6.0, in favor of CompletableFuture
    org.springframework.util.MimeType.SpecificityComparator
    As of 6.0, with no direct replacement
    org.springframework.web.accept.PathExtensionContentNegotiationStrategy
    as of 5.2.4. See class-level note in ContentNegotiationManagerFactoryBean on the deprecation of path extension config options.
    org.springframework.web.accept.ServletPathExtensionContentNegotiationStrategy
    as of 5.2.4. See class-level note in ContentNegotiationManagerFactoryBean on the deprecation of path extension config options.
    org.springframework.web.filter.reactive.ServerHttpObservationFilter
    since 6.1 in favor of WebHttpHandlerBuilder.
    org.springframework.web.reactive.function.client.ExchangeFilterFunctions.Credentials
    as of Spring 5.1 in favor of using HttpHeaders.setBasicAuth(String, String) while building the request.
    org.springframework.web.servlet.tags.ThemeTag
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.theme.AbstractThemeResolver
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.web.servlet.theme.CookieThemeResolver
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.web.servlet.theme.FixedThemeResolver
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.web.servlet.theme.SessionThemeResolver
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.web.servlet.theme.ThemeChangeInterceptor
    as of 6.0 in favor of using CSS, without direct replacement
    org.springframework.web.servlet.view.ResourceBundleViewResolver
    as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementations
    org.springframework.web.servlet.view.XmlViewResolver
    as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementations
    org.springframework.web.util.CookieGenerator
    as of 6.0 in favor of ResponseCookie
  • Deprecated Exceptions
    Exceptions
    Description
    org.springframework.core.task.TaskTimeoutException
    as of 5.3.16 since the common executors do not support start timeouts
    org.springframework.dao.CannotSerializeTransactionException
    as of 6.0.3, in favor of PessimisticLockingFailureException/CannotAcquireLockException
    org.springframework.dao.CleanupFailureDataAccessException
    as of 6.0.3 since it is not in use within core JDBC/ORM support
    org.springframework.dao.DeadlockLoserDataAccessException
    as of 6.0.3, in favor of PessimisticLockingFailureException/CannotAcquireLockException
    org.springframework.web.util.NestedServletException
    as of 6.0, in favor of standard ServletException nesting
  • Deprecated Fields
    Field
    Description
    org.springframework.asm.ClassReader.b
    Use ClassReader.readByte(int) and the other read methods instead. This field will eventually be deleted.
    org.springframework.beans.factory.config.AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT
    as of Spring 3.0: If you are using mixed autowiring strategies, prefer annotation-based autowiring for clearer demarcation of autowiring needs.
    org.springframework.beans.factory.support.AbstractBeanDefinition.AUTOWIRE_AUTODETECT
    as of Spring 3.0: If you are using mixed autowiring strategies, use annotation-based autowiring for clearer demarcation of autowiring needs.
    org.springframework.cglib.core.KeyFactory.OBJECT_BY_CLASS
    this customizer might result in unexpected class leak since key object still holds a strong reference to the Object and class. It is recommended to have pre-processing method that would strip Objects and represent Classes as Strings
    org.springframework.core.annotation.AnnotationFilter.NONE
    as of 5.2.6 since the MergedAnnotations model always ignores lang annotations according to the AnnotationFilter.PLAIN filter (for efficiency reasons)
    org.springframework.core.task.AsyncTaskExecutor.TIMEOUT_IMMEDIATE
    as of 5.3.16 along with AsyncTaskExecutor.execute(Runnable, long)
    org.springframework.core.task.AsyncTaskExecutor.TIMEOUT_INDEFINITE
    as of 5.3.16 along with AsyncTaskExecutor.execute(Runnable, long)
    org.springframework.http.MediaType.APPLICATION_GRAPHQL
    as of 6.0.3, in favor of MediaType.APPLICATION_GRAPHQL_RESPONSE
    org.springframework.http.MediaType.APPLICATION_GRAPHQL_VALUE
    as of 6.0.3, in favor of MediaType.APPLICATION_GRAPHQL_RESPONSE_VALUE
    org.springframework.http.MediaType.APPLICATION_JSON_UTF8
    as of 5.2 in favor of MediaType.APPLICATION_JSON since major browsers like Chrome now comply with the specification and interpret correctly UTF-8 special characters without requiring a charset=UTF-8 parameter.
    org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE
    as of 5.2 in favor of MediaType.APPLICATION_JSON_VALUE since major browsers like Chrome now comply with the specification and interpret correctly UTF-8 special characters without requiring a charset=UTF-8 parameter.
    org.springframework.http.MediaType.APPLICATION_PROBLEM_JSON_UTF8
    as of 5.2 in favor of MediaType.APPLICATION_PROBLEM_JSON since major browsers like Chrome now comply with the specification and interpret correctly UTF-8 special characters without requiring a charset=UTF-8 parameter.
    org.springframework.http.MediaType.APPLICATION_PROBLEM_JSON_UTF8_VALUE
    as of 5.2 in favor of MediaType.APPLICATION_PROBLEM_JSON_VALUE since major browsers like Chrome now comply with the specification and interpret correctly UTF-8 special characters without requiring a charset=UTF-8 parameter.
    org.springframework.http.MediaType.APPLICATION_STREAM_JSON
    as of 5.3, see notice on MediaType.APPLICATION_STREAM_JSON_VALUE.
    org.springframework.http.MediaType.APPLICATION_STREAM_JSON_VALUE
    as of 5.3 since it originates from the W3C Activity Streams specification which has a more specific purpose and has been since replaced with a different mime type. Use MediaType.APPLICATION_NDJSON as a replacement or any other line-delimited JSON format (e.g. JSON Lines, JSON Text Sequences).
    org.springframework.http.MediaType.QUALITY_VALUE_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.http.MediaType.SPECIFICITY_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.jmx.export.MBeanExporter.AUTODETECT_ALL
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.jmx.export.MBeanExporter.AUTODETECT_ASSEMBLER
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.jmx.export.MBeanExporter.AUTODETECT_MBEAN
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.jmx.export.MBeanExporter.AUTODETECT_NONE
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.util.MimeTypeUtils.SPECIFICITY_COMPARATOR
    As of 6.0, with no direct replacement
    org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_ATTRIBUTE
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_BEAN_NAME
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE_ATTRIBUTE
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.HandlerMapping.LOOKUP_PATH
    as of 5.3 in favor of UrlPathHelper.PATH_ATTRIBUTE and ServletRequestPathUtils.PATH_ATTRIBUTE. To access the cached path used for request mapping, use ServletRequestPathUtils.getCachedPathValue(ServletRequest).
    org.springframework.web.servlet.support.RequestContext.DEFAULT_THEME_NAME
    as of 6.0, with no direct replacement
  • Deprecated Methods
    Method
    Description
    org.apache.commons.logging.LogFactory.getAttribute(String)
    org.apache.commons.logging.LogFactory.getAttributeNames()
    org.apache.commons.logging.LogFactory.getFactory()
    in favor of LogFactory.getLog(Class)/LogFactory.getLog(String)
    org.apache.commons.logging.LogFactory.getInstance(Class<?>)
    in favor of LogFactory.getLog(Class)
    org.apache.commons.logging.LogFactory.getInstance(String)
    in favor of LogFactory.getLog(String)
    org.apache.commons.logging.LogFactory.objectId(Object)
    org.apache.commons.logging.LogFactory.release()
    org.apache.commons.logging.LogFactory.release(ClassLoader)
    org.apache.commons.logging.LogFactory.releaseAll()
    org.apache.commons.logging.LogFactory.removeAttribute(String)
    org.apache.commons.logging.LogFactory.setAttribute(String, Object)
    org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.registerHints(ResourceHints, ClassLoader)
    org.springframework.asm.ClassWriter.newHandle(int, String, String, String)
    this method is superseded by ClassWriter.newHandle(int, String, String, String, boolean).
    org.springframework.asm.MethodVisitor.visitMethodInsn(int, String, String, String)
    use MethodVisitor.visitMethodInsn(int, String, String, String, boolean) instead.
    org.springframework.beans.BeanUtils.instantiate(Class<T>)
    as of Spring 5.0, following the deprecation of Class.newInstance() in JDK 9
    org.springframework.beans.factory.aot.BeanInstanceSupplier.withGenerator(ThrowingSupplier<T>)
    in favor of BeanInstanceSupplier.withGenerator(ThrowingFunction)
    org.springframework.beans.factory.config.AutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(Object, String)
    as of 6.1, in favor of implicit post-processing through AutowireCapableBeanFactory.initializeBean(Object, String)
    org.springframework.beans.factory.config.AutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(Object, String)
    as of 6.1, in favor of implicit post-processing through AutowireCapableBeanFactory.initializeBean(Object, String)
    org.springframework.beans.factory.config.AutowireCapableBeanFactory.createBean(Class<?>, int, boolean)
    as of 6.1, in favor of AutowireCapableBeanFactory.createBean(Class)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(Object, String)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(Object, String)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Class<?>, int, boolean)
    org.springframework.cglib.core.CodeEmitter.invoke_static(Type, Signature)
    org.springframework.cglib.core.EmitUtils.append_string(CodeEmitter, Type, EmitUtils.ArrayDelimiters, Customizer)
    use EmitUtils.append_string(CodeEmitter, Type, ArrayDelimiters, CustomizerRegistry) instead
    org.springframework.cglib.core.EmitUtils.hash_code(CodeEmitter, Type, int, Customizer)
    use EmitUtils.hash_code(CodeEmitter, Type, int, CustomizerRegistry) instead
    org.springframework.cglib.core.EmitUtils.not_equals(CodeEmitter, Type, Label, Customizer)
    use EmitUtils.not_equals(CodeEmitter, Type, Label, CustomizerRegistry) instead
    org.springframework.cglib.core.internal.CustomizerRegistry.singleton(Customizer)
    Only to keep backward compatibility.
    org.springframework.cglib.core.KeyFactory.Generator.setCustomizer(Customizer)
    Use KeyFactory.Generator.addCustomizer(KeyFactoryCustomizer) instead.
    org.springframework.context.support.AbstractResourceBasedMessageSource.isFallbackToSystemLocale()
    as of 5.2.2, in favor of AbstractResourceBasedMessageSource.getDefaultLocale()
    org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(ConfigurableListableBeanFactory, Properties)
    in favor of PropertySourcesPlaceholderConfigurer.processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver)
    org.springframework.core.annotation.AnnotationUtils.findAnnotationDeclaringClass(Class<? extends Annotation>, Class<?>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.findAnnotationDeclaringClassForTypes(List<Class<? extends Annotation>>, Class<?>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getAnnotations(AnnotatedElement)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getAnnotations(Method)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getDeclaredRepeatableAnnotations(AnnotatedElement, Class<A>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getDeclaredRepeatableAnnotations(AnnotatedElement, Class<A>, Class<? extends Annotation>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getRepeatableAnnotations(AnnotatedElement, Class<A>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.getRepeatableAnnotations(AnnotatedElement, Class<A>, Class<? extends Annotation>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.isAnnotationInherited(Class<? extends Annotation>, Class<?>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.annotation.AnnotationUtils.isAnnotationMetaPresent(Class<? extends Annotation>, Class<? extends Annotation>)
    as of 5.2 since it is superseded by the MergedAnnotations API
    org.springframework.core.codec.AbstractDataBufferDecoder.decodeDataBuffer(DataBuffer, ResolvableType, MimeType, Map<String, Object>)
    as of 5.2, please implement Decoder.decode(DataBuffer, ResolvableType, MimeType, Map) instead
    org.springframework.core.env.AbstractEnvironment.acceptsProfiles(String...)
    org.springframework.core.env.Environment.acceptsProfiles(String...)
    as of 5.1 in favor of Environment.acceptsProfiles(Profiles) or Environment.matchesProfiles(String...)
    org.springframework.core.GenericTypeResolver.resolveParameterType(MethodParameter, Class<?>)
    since 5.2 in favor of methodParameter.withContainingClass(implementationClass).getParameterType()
    org.springframework.core.io.buffer.DataBuffer.asByteBuffer()
    as of 6.0, in favor of DataBuffer.toByteBuffer(ByteBuffer), DataBuffer.readableByteBuffers(), or DataBuffer.writableByteBuffers().
    org.springframework.core.io.buffer.DataBuffer.asByteBuffer(int, int)
    as of 6.0, in favor of DataBuffer.toByteBuffer(int, ByteBuffer, int, int), DataBuffer.readableByteBuffers(), or DataBuffer.writableByteBuffers().
    org.springframework.core.io.buffer.DataBuffer.capacity(int)
    as of 6.0, in favor of DataBuffer.ensureWritable(int), which has different semantics
    org.springframework.core.io.buffer.DataBuffer.ensureCapacity(int)
    since 6.0, in favor of DataBuffer.ensureWritable(int)
    org.springframework.core.io.buffer.DataBuffer.retainedSlice(int, int)
    as of 6.0, in favor of DataBuffer.split(int), which has different semantics
    org.springframework.core.io.buffer.DataBuffer.slice(int, int)
    as of 6.0, in favor of DataBuffer.split(int), which has different semantics
    org.springframework.core.io.buffer.DataBuffer.toByteBuffer()
    as of 6.0.5, in favor of DataBuffer.toByteBuffer(ByteBuffer)
    org.springframework.core.io.buffer.DataBuffer.toByteBuffer(int, int)
    as of 6.0.5, in favor of DataBuffer.toByteBuffer(int, ByteBuffer, int, int)
    org.springframework.core.io.buffer.DataBufferFactory.allocateBuffer()
    as of 6.0, in favor of DataBufferFactory.allocateBuffer(int)
    org.springframework.core.io.buffer.DataBufferWrapper.asByteBuffer()
    org.springframework.core.io.buffer.DataBufferWrapper.asByteBuffer(int, int)
    org.springframework.core.io.buffer.DataBufferWrapper.capacity(int)
    org.springframework.core.io.buffer.DataBufferWrapper.ensureCapacity(int)
    org.springframework.core.io.buffer.DataBufferWrapper.retainedSlice(int, int)
    org.springframework.core.io.buffer.DataBufferWrapper.slice(int, int)
    org.springframework.core.io.buffer.DataBufferWrapper.toByteBuffer()
    org.springframework.core.io.buffer.DataBufferWrapper.toByteBuffer(int, int)
    org.springframework.core.io.buffer.DefaultDataBuffer.asByteBuffer()
    org.springframework.core.io.buffer.DefaultDataBuffer.asByteBuffer(int, int)
    org.springframework.core.io.buffer.DefaultDataBuffer.capacity(int)
    org.springframework.core.io.buffer.DefaultDataBuffer.slice(int, int)
    org.springframework.core.io.buffer.DefaultDataBuffer.toByteBuffer(int, int)
    org.springframework.core.io.buffer.DefaultDataBufferFactory.allocateBuffer()
    org.springframework.core.io.buffer.Netty5DataBuffer.asByteBuffer()
    org.springframework.core.io.buffer.Netty5DataBuffer.asByteBuffer(int, int)
    org.springframework.core.io.buffer.Netty5DataBuffer.capacity(int)
    org.springframework.core.io.buffer.Netty5DataBuffer.slice(int, int)
    org.springframework.core.io.buffer.Netty5DataBuffer.toByteBuffer(int, int)
    org.springframework.core.io.buffer.Netty5DataBufferFactory.allocateBuffer()
    org.springframework.core.io.buffer.NettyDataBuffer.asByteBuffer()
    org.springframework.core.io.buffer.NettyDataBuffer.asByteBuffer(int, int)
    org.springframework.core.io.buffer.NettyDataBuffer.capacity(int)
    org.springframework.core.io.buffer.NettyDataBuffer.retainedSlice(int, int)
    org.springframework.core.io.buffer.NettyDataBuffer.slice(int, int)
    org.springframework.core.io.buffer.NettyDataBuffer.toByteBuffer(int, int)
    org.springframework.core.io.buffer.NettyDataBufferFactory.allocateBuffer()
    org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames(Class<?>, ClassLoader)
    as of 6.0 in favor of SpringFactoriesLoader.load(Class, ArgumentResolver, FailureHandler)
    org.springframework.core.MethodParameter.decreaseNestingLevel()
    since 5.2 in favor of retaining the original MethodParameter and using MethodParameter.nested(Integer) if nesting is required
    org.springframework.core.MethodParameter.forMethodOrConstructor(Object, int)
    as of 5.0, in favor of MethodParameter.forExecutable(java.lang.reflect.Executable, int)
    org.springframework.core.MethodParameter.increaseNestingLevel()
    since 5.2 in favor of MethodParameter.nested(Integer)
    org.springframework.core.MethodParameter.setTypeIndexForCurrentLevel(int)
    since 5.2 in favor of MethodParameter.withTypeIndex(int)
    org.springframework.core.NestedExceptionUtils.buildMessage(String, Throwable)
    as of 6.0, in favor of custom exception messages with selective inclusion of cause messages
    org.springframework.core.task.AsyncListenableTaskExecutor.submitListenable(Runnable)
    in favor of AsyncTaskExecutor.submitCompletable(Runnable)
    org.springframework.core.task.AsyncListenableTaskExecutor.submitListenable(Callable<T>)
    in favor of AsyncTaskExecutor.submitCompletable(Callable)
    org.springframework.core.task.AsyncTaskExecutor.execute(Runnable, long)
    as of 5.3.16 since the common executors do not support start timeouts
    org.springframework.core.task.SimpleAsyncTaskExecutor.execute(Runnable, long)
    org.springframework.http.client.ClientHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ClientHttpResponse.getStatusCode(); scheduled for removal in 6.2
    org.springframework.http.client.HttpComponentsClientHttpRequestFactory.setBufferRequestBody(boolean)
    since 6.1 requests are never buffered, as if this property is false
    org.springframework.http.client.SimpleClientHttpRequestFactory.setBufferRequestBody(boolean)
    since 6.1 requests are never buffered, as if this property is false
    org.springframework.http.client.SimpleClientHttpRequestFactory.setOutputStreaming(boolean)
    as of 6.1 requests are always streamed, as if this property is true
    org.springframework.http.codec.CodecConfigurer.CustomCodecs.decoder(Decoder<?>)
    as of 5.1.13, use CodecConfigurer.CustomCodecs.register(Object) or CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead.
    org.springframework.http.codec.CodecConfigurer.CustomCodecs.encoder(Encoder<?>)
    as of 5.1.13, use CodecConfigurer.CustomCodecs.register(Object) or CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead.
    org.springframework.http.codec.CodecConfigurer.CustomCodecs.reader(HttpMessageReader<?>)
    as of 5.1.13, use CodecConfigurer.CustomCodecs.register(Object) or CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead.
    org.springframework.http.codec.CodecConfigurer.CustomCodecs.withDefaultCodecConfig(Consumer<CodecConfigurer.DefaultCodecConfig>)
    as of 5.1.13, use CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) or CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object, Consumer) instead.
    org.springframework.http.codec.CodecConfigurer.CustomCodecs.writer(HttpMessageWriter<?>)
    as of 5.1.13, use CodecConfigurer.CustomCodecs.register(Object) or CodecConfigurer.CustomCodecs.registerWithDefaultConfig(Object) instead.
    org.springframework.http.codec.ResourceHttpMessageWriter.addHeaders(ReactiveHttpOutputMessage, Resource, MediaType, Map<String, Object>)
    since 6.1, in favor of ResourceHttpMessageWriter.addDefaultHeaders(ReactiveHttpOutputMessage, Resource, MediaType, Map), for removal = 6.2
    org.springframework.http.ContentDisposition.Builder.creationDate(ZonedDateTime)
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.Builder.modificationDate(ZonedDateTime)
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.Builder.readDate(ZonedDateTime)
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.Builder.size(Long)
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.getCreationDate()
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.getModificationDate()
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.getReadDate()
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.ContentDisposition.getSize()
    since 5.2.3 as per RFC 6266, Appendix B, to be removed in a future release.
    org.springframework.http.HttpStatus.Series.valueOf(HttpStatus)
    as of 5.3, in favor of invoking HttpStatus.series() directly
    org.springframework.http.MediaType.sortByQualityValue(List<MediaType>)
    As of 6.0, with no direct replacement
    org.springframework.http.MediaType.sortBySpecificity(List<MediaType>)
    As of 6.0, in favor of MimeTypeUtils.sortBySpecificity(List)
    org.springframework.http.MediaType.sortBySpecificityAndQuality(List<MediaType>)
    As of 6.0, in favor of MimeTypeUtils.sortBySpecificity(List)
    org.springframework.http.ResponseEntity.getStatusCodeValue()
    as of 6.0, in favor of ResponseEntity.getStatusCode(); scheduled for removal in 7.0
    org.springframework.http.server.reactive.AbstractListenerWriteProcessor.writingPaused()
    originally introduced for Undertow to stop write notifications when no data is available, but deprecated as of 5.0.6 since constant switching on every requested item causes a significant slowdown.
    org.springframework.http.server.reactive.AbstractServerHttpResponse.getRawStatusCode()
    org.springframework.http.server.reactive.ServerHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ServerHttpResponse.getStatusCode()
    org.springframework.http.server.reactive.ServerHttpResponseDecorator.getRawStatusCode()
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], ResultSetExtractor<T>)
    as of 5.3, in favor of JdbcOperations.query(String, ResultSetExtractor, Object...)
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], RowCallbackHandler)
    as of 5.3, in favor of JdbcOperations.query(String, RowCallbackHandler, Object...)
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], RowMapper<T>)
    as of 5.3, in favor of JdbcOperations.query(String, RowMapper, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForList(String, Object[], Class<T>)
    as of 5.3, in favor of JdbcOperations.queryForList(String, Class, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForObject(String, Object[], Class<T>)
    as of 5.3, in favor of JdbcOperations.queryForObject(String, Class, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForObject(String, Object[], RowMapper<T>)
    as of 5.3, in favor of JdbcOperations.queryForObject(String, RowMapper, Object...)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], ResultSetExtractor<T>)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], RowCallbackHandler)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], RowMapper<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForList(String, Object[], Class<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForObject(String, Object[], Class<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForObject(String, Object[], RowMapper<T>)
    org.springframework.jdbc.datasource.DataSourceUtils.resetConnectionAfterTransaction(Connection, Integer)
    as of 5.1.11, in favor of DataSourceUtils.resetConnectionAfterTransaction(Connection, Integer, boolean)
    org.springframework.jdbc.SQLWarningException.SQLWarning()
    as of 5.3.29, in favor of SQLWarningException.getSQLWarning()
    org.springframework.jdbc.support.DatabaseStartupValidator.setValidationQuery(String)
    as of 5.3, in favor of the JDBC 4.0 connection validation
    org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(DataSource, String)
    as of 5.2.9, in favor of JdbcUtils.extractDatabaseMetaData(DataSource, DatabaseMetaDataCallback) with a lambda expression or method reference and a generically typed result
    org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.customTranslate(String, String, SQLException)
    as of 6.1, in favor of AbstractFallbackSQLExceptionTranslator.setCustomTranslator(org.springframework.jdbc.support.SQLExceptionTranslator)
    org.springframework.jmx.export.MBeanExporter.setAutodetectMode(int)
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.jmx.export.MBeanExporter.setAutodetectModeName(String)
    as of 6.1, in favor of the "autodetect" flag
    org.springframework.messaging.handler.invocation.AsyncHandlerMethodReturnValueHandler.toListenableFuture(Object, MethodParameter)
    as of 6.0, in favor of AsyncHandlerMethodReturnValueHandler.toCompletableFuture(Object, MethodParameter)
    org.springframework.messaging.rsocket.RSocketRequester.Builder.connect(ClientTransport)
    as of 5.3 in favor of RSocketRequester.Builder.transport(ClientTransport)
    org.springframework.messaging.rsocket.RSocketRequester.Builder.connectTcp(String, int)
    as of 5.3 in favor of RSocketRequester.Builder.tcp(String, int)
    org.springframework.messaging.rsocket.RSocketRequester.Builder.connectWebSocket(URI)
    as of 5.3 in favor of RSocketRequester.Builder.websocket(URI)
    org.springframework.messaging.simp.stomp.ConnectionHandlingStompSession.getSessionFuture()
    as of 6.0, in favor of ConnectionHandlingStompSession.getSession()
    org.springframework.messaging.simp.stomp.ReactorNettyTcpStompClient.connect(StompHeaders, StompSessionHandler)
    as of 6.0, in favor of ReactorNettyTcpStompClient.connectAsync(StompHeaders, StompSessionHandler)
    org.springframework.messaging.simp.stomp.ReactorNettyTcpStompClient.connect(StompSessionHandler)
    as of 6.0, in favor of ReactorNettyTcpStompClient.connectAsync(StompSessionHandler)
    org.springframework.messaging.tcp.TcpConnection.send(Message<P>)
    as of 6.0, in favor of TcpConnection.sendAsync(Message)
    org.springframework.messaging.tcp.TcpOperations.connect(TcpConnectionHandler<P>)
    as of 6.0, in favor of TcpOperations.connectAsync(TcpConnectionHandler)
    org.springframework.messaging.tcp.TcpOperations.connect(TcpConnectionHandler<P>, ReconnectStrategy)
    as of 6.0, in favor of TcpOperations.connectAsync(TcpConnectionHandler, ReconnectStrategy)
    org.springframework.messaging.tcp.TcpOperations.shutdown()
    as of 6.0, in favor of TcpOperations.shutdownAsync()
    org.springframework.mock.http.server.reactive.MockServerHttpRequest.method(String, String, Object...)
    as of Spring Framework 6.0 in favor of MockServerHttpRequest.method(HttpMethod, String, Object...)
    org.springframework.mock.web.MockPageContext.getExpressionEvaluator()
    org.springframework.mock.web.MockPageContext.getVariableResolver()
    org.springframework.mock.web.reactive.function.server.MockServerRequest.methodName()
    org.springframework.orm.hibernate5.HibernateOperations.bulkUpdate(String, Object...)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.closeIterator(Iterator<?>)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.find(String, Object...)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam(String, String[], Object[])
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam(String, String, Object)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedQuery(String, Object...)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam(String, String[], Object[])
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam(String, String, Object)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndValueBean(String, Object)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.findByValueBean(String, Object)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateOperations.iterate(String, Object...)
    as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method
    org.springframework.orm.hibernate5.HibernateTemplate.bulkUpdate(String, Object...)
    org.springframework.orm.hibernate5.HibernateTemplate.closeIterator(Iterator<?>)
    org.springframework.orm.hibernate5.HibernateTemplate.find(String, Object...)
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String, String[], Object[])
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String, String, Object)
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQuery(String, Object...)
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String, String[], Object[])
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String, String, Object)
    org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndValueBean(String, Object)
    org.springframework.orm.hibernate5.HibernateTemplate.findByValueBean(String, Object)
    org.springframework.orm.hibernate5.HibernateTemplate.iterate(String, Object...)
    org.springframework.orm.hibernate5.HibernateTransactionManager.setAllowResultAccessAfterCompletion(boolean)
    as of 5.3.29 since Hibernate 5.x aggressively closes ResultSets on commit, making it impossible to rely on ResultSet holdability. Also, Spring does not provide an equivalent setting on JpaTransactionManager.
    org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.createRunnable(Object, Method)
    in favor of ScheduledAnnotationBeanPostProcessor.createRunnable(Object, Method, String)
    org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.execute(Runnable, long)
    org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.isRemoveOnCancelPolicy()
    as of 5.3.9, in favor of direct ThreadPoolTaskScheduler.getScheduledThreadPoolExecutor() access
    org.springframework.scheduling.config.IntervalTask.getInitialDelay()
    as of 6.0, in favor of IntervalTask.getInitialDelayDuration()
    org.springframework.scheduling.config.IntervalTask.getInterval()
    as of 6.0, in favor of IntervalTask.getIntervalDuration()
    org.springframework.scheduling.config.ScheduledTaskRegistrar.addFixedDelayTask(Runnable, long)
    as of 6.0, in favor of ScheduledTaskRegistrar.addFixedDelayTask(Runnable, Duration)
    org.springframework.scheduling.config.ScheduledTaskRegistrar.addFixedRateTask(Runnable, long)
    as of 6.0, in favor of ScheduledTaskRegistrar.addFixedRateTask(Runnable, Duration)
    org.springframework.scheduling.support.PeriodicTrigger.getInitialDelay()
    as of 6.0, in favor on PeriodicTrigger.getInitialDelayDuration()
    org.springframework.scheduling.support.PeriodicTrigger.getPeriod()
    as of 6.0, in favor on PeriodicTrigger.getPeriodDuration()
    org.springframework.scheduling.support.PeriodicTrigger.getTimeUnit()
    as of 6.0, with no direct replacement
    org.springframework.scheduling.support.PeriodicTrigger.setInitialDelay(long)
    as of 6.0, in favor of PeriodicTrigger.setInitialDelay(Duration)
    org.springframework.scheduling.support.SimpleTriggerContext.update(Date, Date, Date)
    as of 6.0, in favor of SimpleTriggerContext.update(Instant, Instant, Instant)
    org.springframework.scheduling.TaskScheduler.schedule(Runnable, Date)
    as of 6.0, in favor of TaskScheduler.schedule(Runnable, Instant)
    org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate(Runnable, long)
    as of 6.0, in favor of TaskScheduler.scheduleAtFixedRate(Runnable, Duration)
    org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate(Runnable, Date, long)
    as of 6.0, in favor of TaskScheduler.scheduleAtFixedRate(Runnable, Instant, Duration)
    org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay(Runnable, long)
    as of 6.0, in favor of TaskScheduler.scheduleWithFixedDelay(Runnable, Duration)
    org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay(Runnable, Date, long)
    as of 6.0, in favor of TaskScheduler.scheduleWithFixedDelay(Runnable, Instant, Duration)
    org.springframework.scheduling.Trigger.nextExecutionTime(TriggerContext)
    as of 6.0, in favor of Trigger.nextExecution(TriggerContext)
    org.springframework.scheduling.TriggerContext.lastActualExecutionTime()
    as of 6.0, in favor on TriggerContext.lastActualExecution()
    org.springframework.scheduling.TriggerContext.lastCompletionTime()
    as of 6.0, in favor on TriggerContext.lastCompletion()
    org.springframework.scheduling.TriggerContext.lastScheduledExecutionTime()
    as of 6.0, in favor on TriggerContext.lastScheduledExecution()
    org.springframework.test.context.ContextLoader.loadContext(String...)
    as of Spring Framework 6.0, in favor of methods defined in the SmartContextLoader SPI
    org.springframework.test.context.ContextLoader.processLocations(Class<?>, String...)
    as of Spring Framework 6.0, in favor of methods defined in the SmartContextLoader SPI
    org.springframework.test.context.MergedContextConfiguration.getPropertySourceLocations()
    since 6.1 in favor of MergedContextConfiguration.getPropertySourceDescriptors()
    org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(String...)
    as of Spring Framework 6.0, in favor of AbstractGenericContextLoader.loadContext(MergedContextConfiguration)
    org.springframework.test.web.reactive.server.WebTestClient.Builder.exchangeStrategies(Consumer<ExchangeStrategies.Builder>)
    as of 5.1.13 in favor of WebTestClient.Builder.codecs(Consumer)
    org.springframework.test.web.reactive.server.WebTestClient.RequestBodySpec.syncBody(Object)
    as of Spring Framework 5.2 in favor of WebTestClient.RequestBodySpec.bodyValue(Object)
    org.springframework.test.web.servlet.client.MockMvcWebTestClient.ControllerSpec.useTrailingSlashPatternMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.test.web.servlet.result.StatusResultMatchers.isCheckpoint()
    in favor of StatusResultMatchers.isEarlyHints()
    org.springframework.test.web.servlet.result.StatusResultMatchers.isDestinationLocked()
    matching the deprecation of HttpStatus.DESTINATION_LOCKED
    org.springframework.test.web.servlet.result.StatusResultMatchers.isInsufficientSpaceOnResource()
    matching the deprecation of HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE
    org.springframework.test.web.servlet.result.StatusResultMatchers.isMethodFailure()
    matching the deprecation of HttpStatus.METHOD_FAILURE
    org.springframework.test.web.servlet.result.StatusResultMatchers.isMovedTemporarily()
    in favor of StatusResultMatchers.isFound()
    org.springframework.test.web.servlet.result.StatusResultMatchers.isRequestEntityTooLarge()
    matching the deprecation of HttpStatus.REQUEST_ENTITY_TOO_LARGE
    org.springframework.test.web.servlet.result.StatusResultMatchers.isRequestUriTooLong()
    matching the deprecation of HttpStatus.REQUEST_URI_TOO_LONG
    org.springframework.test.web.servlet.result.StatusResultMatchers.isUseProxy()
    matching the deprecation of HttpStatus.USE_PROXY
    org.springframework.test.web.servlet.ResultMatcher.matchAll(ResultMatcher...)
    as of Spring Framework 5.3.10, in favor of ResultActions.andExpectAll(ResultMatcher...)
    org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder.setUseSuffixPatternMatch(boolean)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder.setUseTrailingSlashPatternMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.util.ClassUtils.getInterfaceMethodIfPossible(Method)
    in favor of ClassUtils.getInterfaceMethodIfPossible(Method, Class)
    org.springframework.util.ClassUtils.isCglibProxy(Object)
    as of 5.2, in favor of custom (possibly narrower) checks such as for a Spring AOP proxy
    org.springframework.util.ClassUtils.isCglibProxyClass(Class<?>)
    as of 5.2, in favor of custom (possibly narrower) checks or simply a check for containing ClassUtils.CGLIB_CLASS_SEPARATOR
    org.springframework.util.ClassUtils.isCglibProxyClassName(String)
    as of 5.2, in favor of custom (possibly narrower) checks or simply a check for containing ClassUtils.CGLIB_CLASS_SEPARATOR
    org.springframework.util.concurrent.ListenableFuture.addCallback(ListenableFutureCallback<? super T>)
    as of 6.0, in favor of CompletableFuture.whenComplete(BiConsumer)
    org.springframework.util.concurrent.ListenableFuture.addCallback(SuccessCallback<? super T>, FailureCallback)
    as of 6.0, in favor of CompletableFuture.whenComplete(BiConsumer)
    org.springframework.util.ConcurrentLruCache.sizeLimit()
    in favor of ConcurrentLruCache.capacity() as of 6.0.
    org.springframework.util.ObjectUtils.nullSafeHashCode(boolean[])
    as of 6.1 in favor of Arrays.hashCode(boolean[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(byte[])
    as of 6.1 in favor of Arrays.hashCode(byte[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(char[])
    as of 6.1 in favor of Arrays.hashCode(char[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(double[])
    as of 6.1 in favor of Arrays.hashCode(double[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(float[])
    as of 6.1 in favor of Arrays.hashCode(float[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(int[])
    as of 6.1 in favor of Arrays.hashCode(int[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(long[])
    as of 6.1 in favor of Arrays.hashCode(long[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(short[])
    as of 6.1 in favor of Arrays.hashCode(short[])
    org.springframework.util.ObjectUtils.nullSafeHashCode(Object[])
    as of 6.1 in favor of Arrays.hashCode(Object[])
    org.springframework.util.SerializationUtils.deserialize(byte[])
    This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.

    Prefer the use of an external tool (that serializes to JSON, XML, or any other format) which is regularly checked and updated for not allowing RCE.

    org.springframework.util.StopWatch.getLastTaskInfo()
    as of 6.1, in favor of StopWatch.lastTaskInfo()
    org.springframework.util.StopWatch.getLastTaskName()
    as of 6.1, in favor of StopWatch.lastTaskInfo()
    org.springframework.util.StopWatch.getLastTaskTimeMillis()
    as of 6.1, in favor of StopWatch.lastTaskInfo()
    org.springframework.util.StopWatch.getLastTaskTimeNanos()
    as of 6.1, in favor of StopWatch.lastTaskInfo()
    org.springframework.util.StreamUtils.emptyInput()
    as of 6.0 in favor of InputStream.nullInputStream()
    org.springframework.util.StringUtils.isEmpty(Object)
    as of 5.3, in favor of StringUtils.hasLength(String) and StringUtils.hasText(String) (or ObjectUtils.isEmpty(Object))
    org.springframework.util.StringUtils.trimLeadingWhitespace(String)
    since 6.0, in favor of String.stripLeading()
    org.springframework.util.StringUtils.trimTrailingWhitespace(String)
    since 6.0, in favor of String.stripTrailing()
    org.springframework.util.StringUtils.trimWhitespace(String)
    since 6.0, in favor of String.strip()
    org.springframework.web.accept.ContentNegotiationManagerFactoryBean.setFavorPathExtension(boolean)
    as of 5.2.4. See class-level note on the deprecation of path extension config options. As there is no replacement for this method, in 5.2.x it is necessary to set it to false. In 5.3 the default changes to false and use of this property becomes unnecessary.
    org.springframework.web.accept.ContentNegotiationManagerFactoryBean.setIgnoreUnknownPathExtensions(boolean)
    as of 5.2.4. See class-level note on the deprecation of path extension config options.
    org.springframework.web.accept.ContentNegotiationManagerFactoryBean.setUseJaf(boolean)
    as of 5.0, in favor of ContentNegotiationManagerFactoryBean.setUseRegisteredExtensionsOnly(boolean), which has reverse behavior.
    org.springframework.web.accept.PathExtensionContentNegotiationStrategy.setUseJaf(boolean)
    as of 5.0, in favor of AbstractMappingContentNegotiationStrategy.setUseRegisteredExtensionsOnly(boolean).
    org.springframework.web.bind.MethodArgumentNotValidException.errorsToStringList(List<? extends ObjectError>)
    in favor of using BindErrorUtils and BindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.bind.MethodArgumentNotValidException.errorsToStringList(List<? extends ObjectError>, MessageSource, Locale)
    in favor of BindErrorUtils, to be removed in 6.2
    org.springframework.web.bind.MethodArgumentNotValidException.resolveErrorMessages(MessageSource, Locale)
    in favor of using BindErrorUtils and BindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.bind.support.WebExchangeBindException.resolveErrorMessages(MessageSource, Locale)
    in favor of using BindErrorUtils and WebExchangeBindException.getAllErrors(), to be removed in 6.2
    org.springframework.web.client.DefaultResponseErrorHandler.hasError(int)
    in favor of DefaultResponseErrorHandler.hasError(HttpStatusCode)
    org.springframework.web.client.RestClientResponseException.getRawStatusCode()
    as of 6.0, in favor of RestClientResponseException.getStatusCode()
    org.springframework.web.client.RestTemplate.doExecute(URI, HttpMethod, RequestCallback, ResponseExtractor<T>)
    in favor of RestTemplate.doExecute(URI, String, HttpMethod, RequestCallback, ResponseExtractor)
    org.springframework.web.client.UnknownContentTypeException.getRawStatusCode()
    as of 6.0, in favor of UnknownContentTypeException.getStatusCode()
    org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.getTheme(String)
    org.springframework.web.context.support.GenericWebApplicationContext.getTheme(String)
    org.springframework.web.context.support.StaticWebApplicationContext.getTheme(String)
    org.springframework.web.cors.reactive.CorsUtils.isSameOrigin(ServerHttpRequest)
    as of 5.2, same-origin checks are performed directly by CorsUtils.isCorsRequest(org.springframework.http.server.reactive.ServerHttpRequest)
    org.springframework.web.cors.UrlBasedCorsConfigurationSource.setAlwaysUseFullPath(boolean)
    as of 5.3 in favor of using UrlBasedCorsConfigurationSource.setUrlPathHelper(UrlPathHelper), if at all. For further details, please see UrlBasedCorsConfigurationSource.setAllowInitLookupPath(boolean).
    org.springframework.web.cors.UrlBasedCorsConfigurationSource.setLookupPathAttributeName(String)
    as of 5.3 in favor of UrlPathHelper.PATH_ATTRIBUTE.
    org.springframework.web.cors.UrlBasedCorsConfigurationSource.setRemoveSemicolonContent(boolean)
    as of 5.3 in favor of using UrlBasedCorsConfigurationSource.setUrlPathHelper(UrlPathHelper), if at all. For further details, please see UrlBasedCorsConfigurationSource.setAllowInitLookupPath(boolean).
    org.springframework.web.cors.UrlBasedCorsConfigurationSource.setUrlDecode(boolean)
    as of 5.3 in favor of using UrlBasedCorsConfigurationSource.setUrlPathHelper(UrlPathHelper), if at all. For further details, please see UrlBasedCorsConfigurationSource.setAllowInitLookupPath(boolean).
    org.springframework.web.filter.reactive.ServerWebExchangeContextFilter.get(Context)
    in favor of using ServerWebExchangeContextFilter.getExchange(ContextView) which accepts a ContextView instead of Context, reflecting the fact that the ContextView is needed only for reading.
    org.springframework.web.method.support.ModelAndViewContainer.setIgnoreDefaultModelOnRedirect(boolean)
    as of 6.0 without a replacement; once removed, the default model will always be ignored on redirect
    org.springframework.web.reactive.config.PathMatchConfigurer.isUseTrailingSlashMatch()
    org.springframework.web.reactive.config.PathMatchConfigurer.setUseTrailingSlashMatch(Boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.reactive.function.BodyInserters.fromObject(T)
    As of Spring Framework 5.2, in favor of BodyInserters.fromValue(Object)
    org.springframework.web.reactive.function.client.ClientRequest.method(HttpMethod, URI)
    in favor of ClientRequest.create(HttpMethod, URI)
    org.springframework.web.reactive.function.client.ClientResponse.from(ClientResponse)
    as of 5.3 in favor of the instance based ClientResponse.mutate().
    org.springframework.web.reactive.function.client.ExchangeFilterFunctions.basicAuthentication()
    as of Spring 5.1 in favor of using HttpHeaders.setBasicAuth(String, String) while building the request.
    org.springframework.web.reactive.function.client.support.WebClientAdapter.forClient(WebClient)
    in favor of WebClientAdapter.create(WebClient) aligning with other adapter implementations; to be removed in 6.2.
    org.springframework.web.reactive.function.client.WebClient.Builder.exchangeStrategies(Consumer<ExchangeStrategies.Builder>)
    as of 5.1.13 in favor of WebClient.Builder.codecs(Consumer)
    org.springframework.web.reactive.function.client.WebClient.RequestBodySpec.syncBody(Object)
    as of Spring Framework 5.2 in favor of WebClient.RequestBodySpec.bodyValue(Object)
    org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec.context(Function<Context, Context>)
    in 5.3.2 to be removed soon after; this method cannot provide context to downstream (nested or subsequent) requests and is of limited value.
    org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec.exchange()
    since 5.3 due to the possibility to leak memory and/or connections; please, use WebClient.RequestHeadersSpec.exchangeToMono(Function), WebClient.RequestHeadersSpec.exchangeToFlux(Function); consider also using WebClient.RequestHeadersSpec.retrieve() which provides access to the response status and headers via ResponseEntity along with error status handling.
    org.springframework.web.reactive.function.client.WebClientResponseException.getRawStatusCode()
    as of 6.0, in favor of WebClientResponseException.getStatusCode()
    org.springframework.web.reactive.function.server.ServerRequest.methodName()
    as of 6.0, in favor of ServerRequest.method()
    org.springframework.web.reactive.function.server.ServerRequest.pathContainer()
    as of 5.3, in favor on ServerRequest.requestPath()
    org.springframework.web.reactive.function.server.ServerResponse.BodyBuilder.syncBody(Object)
    as of Spring Framework 5.2 in favor of ServerResponse.BodyBuilder.bodyValue(Object)
    org.springframework.web.reactive.function.server.ServerResponse.rawStatusCode()
    as of 6.0, in favor of ServerResponse.statusCode()
    org.springframework.web.reactive.function.server.support.ServerRequestWrapper.methodName()
    org.springframework.web.reactive.function.server.support.ServerRequestWrapper.pathContainer()
    org.springframework.web.reactive.handler.AbstractHandlerMapping.setUseTrailingSlashMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.reactive.HandlerResult.applyExceptionHandler(Throwable)
    without a replacement; for internal invocation only, not used as of 6.0
    org.springframework.web.reactive.HandlerResult.hasExceptionHandler()
    in favor of checking via HandlerResult.getExceptionHandler()
    org.springframework.web.reactive.HandlerResult.setExceptionHandler(Function<Throwable, Mono<HandlerResult>>)
    in favor of HandlerResult.setExceptionHandler(DispatchExceptionHandler)
    org.springframework.web.reactive.result.view.freemarker.FreeMarkerView.getTemplate(Locale)
    since 6.1, in favor of FreeMarkerView.lookupTemplate(Locale), to be removed in 6.2
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.getHandlePing()
    as of 5.3 in favor of ReactorNettyWebSocketClient.getWebsocketClientSpec()
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.getMaxFramePayloadLength()
    as of 5.3 in favor of ReactorNettyWebSocketClient.getWebsocketClientSpec()
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(boolean)
    as of 5.3 in favor of providing a supplier of WebsocketClientSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setMaxFramePayloadLength(int)
    as of 5.3 in favor of providing a supplier of WebsocketClientSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.CloseStatus.equalsCode(CloseStatus)
    as of 5.3 in favor of comparing codes directly
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getHandlePing()
    as of 5.2.6 in favor of ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getMaxFramePayloadLength()
    as of 5.2.6 in favor of ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setHandlePing(boolean)
    as of 5.2.6 in favor of providing a supplier of WebsocketServerSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setMaxFramePayloadLength(Integer)
    as of 5.2.6 in favor of providing a supplier of WebsocketServerSpec.Builder with a constructor argument
    org.springframework.web.server.handler.ResponseStatusExceptionHandler.determineRawStatusCode(Throwable)
    as of 6.0, in favor of ResponseStatusExceptionHandler.determineStatus(Throwable)
    org.springframework.web.server.MethodNotAllowedException.getResponseHeaders()
    as of 6.0 in favor of MethodNotAllowedException.getHeaders()
    org.springframework.web.server.NotAcceptableStatusException.getResponseHeaders()
    as of 6.0 in favor of NotAcceptableStatusException.getHeaders()
    org.springframework.web.server.ResponseStatusException.getResponseHeaders()
    as of 6.0 in favor of ResponseStatusException.getHeaders()
    org.springframework.web.server.UnsupportedMediaTypeStatusException.getResponseHeaders()
    as of 6.0 in favor of UnsupportedMediaTypeStatusException.getHeaders()
    org.springframework.web.service.invoker.HttpRequestValues.Builder.addRequestPart(String, P, ResolvableType)
    in favor of ReactiveHttpRequestValues.Builder.addRequestPartPublisher(java.lang.String, P, org.springframework.core.ParameterizedTypeReference<T>); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.Builder.createRequestValues(HttpMethod, URI, String, Map<String, String>, HttpHeaders, MultiValueMap<String, String>, Map<String, Object>, Object)
    in favour of HttpRequestValues.Builder.createRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object) to be removed in 6.2.
    org.springframework.web.service.invoker.HttpRequestValues.Builder.setBody(P, ParameterizedTypeReference<T>)
    in favor of ReactiveHttpRequestValues.Builder.setBodyPublisher(P, org.springframework.core.ParameterizedTypeReference<T>); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.getBody()
    in favor of ReactiveHttpRequestValues.getBodyPublisher(); to be removed in 6.2
    org.springframework.web.service.invoker.HttpRequestValues.getBodyElementType()
    in favor of ReactiveHttpRequestValues.getBodyPublisherElementType(); to be removed in 6.2
    org.springframework.web.service.invoker.HttpServiceProxyFactory.builder(HttpClientAdapter)
    in favor of HttpServiceProxyFactory.builderFor(HttpExchangeAdapter); to be removed in 6.2.
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.blockTimeout(Duration)
    in favor of setting the same directly on the HttpExchangeAdapter
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.clientAdapter(HttpClientAdapter)
    in favor of HttpServiceProxyFactory.Builder.exchangeAdapter(HttpExchangeAdapter); to be removed in 6.2
    org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder.reactiveAdapterRegistry(ReactiveAdapterRegistry)
    in favor of setting the same directly on the HttpExchangeAdapter
    org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.favorPathExtension(boolean)
    as of 5.2.4. See deprecation note on ContentNegotiationManagerFactoryBean.setFavorPathExtension(boolean).
    org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.ignoreUnknownPathExtensions(boolean)
    as of 5.2.4. See deprecation note on ContentNegotiationManagerFactoryBean.setIgnoreUnknownPathExtensions(boolean).
    org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.useJaf(boolean)
    as of 5.0, in favor of ContentNegotiationConfigurer.useRegisteredExtensionsOnly(boolean) which has reverse behavior
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseRegisteredSuffixPatternMatch()
    as of 5.2.4, see deprecation note on PathMatchConfigurer.setUseRegisteredSuffixPatternMatch(Boolean).
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseSuffixPatternMatch()
    as of 5.2.4, see deprecation note on PathMatchConfigurer.setUseSuffixPatternMatch(Boolean).
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseTrailingSlashMatch()
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseRegisteredSuffixPatternMatch(Boolean)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseSuffixPatternMatch(Boolean)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options. As there is no replacement for this method, in 5.2.x it is necessary to set it to false. In 5.3 the default changes to false and use of this property becomes unnecessary.
    org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseTrailingSlashMatch(Boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.themeResolver()
    org.springframework.web.servlet.DispatcherServlet.getThemeSource()
    org.springframework.web.servlet.DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean)
    as of 6.1 this property is set to true by default, and should not need to be customized; in effect, DispatcherServlet should always raise NoHandlerFoundException and allow it to be handled through a HandlerExceptionResolver.
    org.springframework.web.servlet.function.ServerRequest.methodName()
    in favor of ServerRequest.method()
    org.springframework.web.servlet.function.ServerRequest.pathContainer()
    as of 5.3, in favor on ServerRequest.requestPath()
    org.springframework.web.servlet.function.ServerResponse.rawStatusCode()
    as of 6.0, in favor of ServerResponse.statusCode()
    org.springframework.web.servlet.handler.AbstractHandlerMapping.setAlwaysUseFullPath(boolean)
    as of 6.0, in favor of using AbstractHandlerMapping.setUrlPathHelper(UrlPathHelper)
    org.springframework.web.servlet.handler.AbstractHandlerMapping.setRemoveSemicolonContent(boolean)
    as of 6.0, in favor of using AbstractHandlerMapping.setUrlPathHelper(UrlPathHelper)
    org.springframework.web.servlet.handler.AbstractHandlerMapping.setUrlDecode(boolean)
    as of 6.0, in favor of using AbstractHandlerMapping.setUrlPathHelper(UrlPathHelper)
    org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getMappingPathPatterns(T)
    as of 5.3 in favor of providing non-pattern mappings via AbstractHandlerMethodMapping.getDirectPaths(Object) instead
    org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.setUseTrailingSlashMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.servlet.handler.MappedInterceptor.getPathPatterns()
    since 6.1 in favor of MappedInterceptor.getIncludePathPatterns()
    org.springframework.web.servlet.handler.MappedInterceptor.matches(String, PathMatcher)
    as of 5.3 in favor of MappedInterceptor.matches(HttpServletRequest)
    org.springframework.web.servlet.HandlerAdapter.getLastModified(HttpServletRequest, Object)
    as of 5.3.9 along with LastModified.
    org.springframework.web.servlet.i18n.CookieLocaleResolver.determineDefaultLocale(HttpServletRequest)
    as of 6.0, in favor of CookieLocaleResolver.setDefaultLocaleFunction(Function)
    org.springframework.web.servlet.i18n.CookieLocaleResolver.determineDefaultTimeZone(HttpServletRequest)
    as of 6.0, in favor of CookieLocaleResolver.setDefaultTimeZoneFunction(Function)
    org.springframework.web.servlet.i18n.CookieLocaleResolver.setCookieMaxAge(Integer)
    as of 6.0 in favor of CookieLocaleResolver.setCookieMaxAge(Duration)
    org.springframework.web.servlet.i18n.CookieLocaleResolver.setCookieName(String)
    as of 6.0 in favor of CookieLocaleResolver(String)
    org.springframework.web.servlet.i18n.SessionLocaleResolver.determineDefaultLocale(HttpServletRequest)
    as of 6.0, in favor of SessionLocaleResolver.setDefaultLocaleFunction(Function)
    org.springframework.web.servlet.i18n.SessionLocaleResolver.determineDefaultTimeZone(HttpServletRequest)
    as of 6.0, in favor of SessionLocaleResolver.setDefaultTimeZoneFunction(Function)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.getLastModifiedInternal(HttpServletRequest, HandlerMethod)
    as of 5.3.9 along with LastModified.
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.setIgnoreDefaultModelOnRedirect(boolean)
    as of 6.0 without a replacement; once removed, the default model will always be ignored on redirect
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getFileExtensions()
    as of 5.2.4. See class-level note on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseRegisteredSuffixPatternMatch(boolean)
    as of 5.2.4. See class level note on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean)
    as of 5.2.4. See class level note on the deprecation of path extension config options. As there is no replacement for this method, in 5.2.x it is necessary to set it to false. In 5.3 the default changes to false and use of this property becomes unnecessary.
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseTrailingSlashMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.useRegisteredSuffixPatternMatch()
    as of 5.2.4. See deprecation notice on RequestMappingHandlerMapping.setUseRegisteredSuffixPatternMatch(boolean).
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.useSuffixPatternMatch()
    as of 5.2.4. See deprecation notice on RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean).
    org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleBindException(BindException, HttpHeaders, HttpStatusCode, WebRequest)
    as of 6.0 since ModelAttributeMethodProcessor now raises the MethodArgumentNotValidException subclass instead.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.getFileExtensions()
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.getUrlPathHelper()
    as of 5.3, the path is resolved externally and obtained with ServletRequestPathUtils.getCachedPathValue(ServletRequest); this method always returns UrlPathHelper.defaultInstance.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setRegisteredSuffixPatternMatch(boolean)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setSuffixPatternMatch(boolean)
    as of 5.2.4. See deprecation note on RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean).
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setTrailingSlashMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setUrlPathHelper(UrlPathHelper)
    as of 5.3, the path is resolved externally and obtained with ServletRequestPathUtils.getCachedPathValue(ServletRequest)
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.useRegisteredSuffixPatternMatch()
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.useSuffixPatternMatch()
    as of 5.2.4. See deprecation note on RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean).
    org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.useTrailingSlashMatch()
    as of 6.0 together with RequestMappingInfo.BuilderConfiguration.setTrailingSlashMatch(boolean)
    org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleBindException(BindException, HttpServletRequest, HttpServletResponse, Object)
    as of 6.0 since ModelAttributeMethodProcessor now raises the MethodArgumentNotValidException subclass instead.
    org.springframework.web.servlet.mvc.WebContentInterceptor.setAlwaysUseFullPath(boolean)
    as of 5.3, the path is resolved externally and obtained with ServletRequestPathUtils.getCachedPathValue(ServletRequest)
    org.springframework.web.servlet.mvc.WebContentInterceptor.setUrlDecode(boolean)
    as of 5.3, the path is resolved externally and obtained with ServletRequestPathUtils.getCachedPathValue(ServletRequest)
    org.springframework.web.servlet.mvc.WebContentInterceptor.setUrlPathHelper(UrlPathHelper)
    as of 5.3, the path is resolved externally and obtained with ServletRequestPathUtils.getCachedPathValue(ServletRequest)
    org.springframework.web.servlet.resource.ResourceHttpRequestHandler.getContentNegotiationManager()
    as of 5.2.4
    org.springframework.web.servlet.resource.ResourceHttpRequestHandler.initContentNegotiationStrategy()
    as of 5.2.4 this method returns null, and if a subclass returns an actual instance, the instance is used only as a source of media type mappings, if it contains any. Please, use ResourceHttpRequestHandler.setMediaTypes(Map) instead, or if you need to change behavior, you can override ResourceHttpRequestHandler.getMediaType(HttpServletRequest, Resource).
    org.springframework.web.servlet.resource.ResourceHttpRequestHandler.setContentNegotiationManager(ContentNegotiationManager)
    as of 5.2.4 in favor of using ResourceHttpRequestHandler.setMediaTypes(Map) with mappings possibly obtained from ContentNegotiationManager.getMediaTypeMappings().
    org.springframework.web.servlet.support.RequestContext.changeTheme(String)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.changeTheme(Theme)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getFallbackTheme()
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getTheme()
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String, Object[])
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String, Object[], String)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String, String)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String, List<?>)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(String, List<?>, String)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContext.getThemeMessage(MessageSourceResolvable)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContextUtils.getTheme(HttpServletRequest)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContextUtils.getThemeResolver(HttpServletRequest)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.RequestContextUtils.getThemeSource(HttpServletRequest)
    as of 6.0, with no direct replacement
    org.springframework.web.servlet.support.WebContentGenerator.applyCacheSeconds(HttpServletResponse, int, boolean)
    as of 4.2, in favor of WebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse, org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.cacheForSeconds(HttpServletResponse, int)
    as of 4.2, in favor of WebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse, org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.cacheForSeconds(HttpServletResponse, int, boolean)
    as of 4.2, in favor of WebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse, org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.checkAndPrepare(HttpServletRequest, HttpServletResponse, int, boolean)
    as of 4.2, since the lastModified flag is effectively ignored, with a must-revalidate header only generated if explicitly configured
    org.springframework.web.servlet.support.WebContentGenerator.isAlwaysMustRevalidate()
    as of 4.2, in favor of WebContentGenerator.getCacheControl()
    org.springframework.web.servlet.support.WebContentGenerator.isUseCacheControlHeader()
    as of 4.2, in favor of WebContentGenerator.getCacheControl()
    org.springframework.web.servlet.support.WebContentGenerator.isUseCacheControlNoStore()
    as of 4.2, in favor of WebContentGenerator.getCacheControl()
    org.springframework.web.servlet.support.WebContentGenerator.isUseExpiresHeader()
    as of 4.2, in favor of WebContentGenerator.getCacheControl()
    org.springframework.web.servlet.support.WebContentGenerator.preventCaching(HttpServletResponse)
    as of 4.2, in favor of WebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse, org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.setAlwaysMustRevalidate(boolean)
    as of 4.2, in favor of WebContentGenerator.setCacheControl(org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.setUseCacheControlHeader(boolean)
    as of 4.2, since going forward, the HTTP 1.1 cache-control header will be required, with the HTTP 1.0 headers disappearing
    org.springframework.web.servlet.support.WebContentGenerator.setUseCacheControlNoStore(boolean)
    as of 4.2, in favor of WebContentGenerator.setCacheControl(org.springframework.http.CacheControl)
    org.springframework.web.servlet.support.WebContentGenerator.setUseExpiresHeader(boolean)
    as of 4.2, since going forward, the HTTP 1.1 cache-control header will be required, with the HTTP 1.0 headers disappearing
    org.springframework.web.socket.client.AbstractWebSocketClient.doHandshakeInternal(WebSocketHandler, HttpHeaders, URI, List<String>, List<WebSocketExtension>, Map<String, Object>)
    as of 6.0, in favor of AbstractWebSocketClient.executeInternal(WebSocketHandler, HttpHeaders, URI, List, List, Map)
    org.springframework.web.socket.client.WebSocketClient.doHandshake(WebSocketHandler, String, Object...)
    as of 6.0, in favor of WebSocketClient.execute(WebSocketHandler, String, Object...)
    org.springframework.web.socket.client.WebSocketClient.doHandshake(WebSocketHandler, WebSocketHttpHeaders, URI)
    as of 6.0, in favor of WebSocketClient.execute(WebSocketHandler, WebSocketHttpHeaders, URI)
    org.springframework.web.socket.messaging.WebSocketStompClient.connect(String, StompSessionHandler, Object...)
    as of 6.0, in favor of WebSocketStompClient.connectAsync(String, StompSessionHandler, Object...)
    org.springframework.web.socket.messaging.WebSocketStompClient.connect(String, WebSocketHttpHeaders, StompHeaders, StompSessionHandler, Object...)
    as of 6.0, in favor of WebSocketStompClient.connectAsync(String, WebSocketHttpHeaders, StompHeaders, StompSessionHandler, Object...)
    org.springframework.web.socket.messaging.WebSocketStompClient.connect(String, WebSocketHttpHeaders, StompSessionHandler, Object...)
    as of 6.0, in favor of WebSocketStompClient.connectAsync(String, WebSocketHttpHeaders, StompSessionHandler, Object...)
    org.springframework.web.socket.messaging.WebSocketStompClient.connect(URI, WebSocketHttpHeaders, StompHeaders, StompSessionHandler)
    as of 6.0, in favor of WebSocketStompClient.connectAsync(URI, WebSocketHttpHeaders, StompHeaders, StompSessionHandler)
    org.springframework.web.socket.sockjs.client.AbstractXhrTransport.connectInternal(TransportRequest, WebSocketHandler, URI, HttpHeaders, XhrClientSockJsSession, SettableListenableFuture<WebSocketSession>)
    org.springframework.web.socket.sockjs.client.Transport.connect(TransportRequest, WebSocketHandler)
    as of 6.0, in favor of Transport.connectAsync(TransportRequest, WebSocketHandler)
    org.springframework.web.util.pattern.PathPatternParser.isMatchOptionalTrailingSeparator()
    as of 6.0 together with PathPatternParser.setMatchOptionalTrailingSeparator(boolean).
    org.springframework.web.util.pattern.PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    transparent support for trailing slashes is deprecated as of 6.0 in favor of configuring explicit redirects through a proxy, Servlet/web filter, or a controller.
    org.springframework.web.util.UriComponentsBuilder.fromHttpRequest(HttpRequest)
    in favor of ForwardedHeaderUtils.adaptFromForwardedHeaders(java.net.URI, org.springframework.http.HttpHeaders); to be removed in 6.2
    org.springframework.web.util.UriComponentsBuilder.parseForwardedFor(HttpRequest, InetSocketAddress)
    in favor of ForwardedHeaderUtils.parseForwardedFor(java.net.URI, org.springframework.http.HttpHeaders, java.net.InetSocketAddress); to be removed in 6.2
    org.springframework.web.util.UrlPathHelper.getLookupPathForRequest(HttpServletRequest, String)
    as of 5.3 in favor of using UrlPathHelper.resolveAndCacheLookupPath(HttpServletRequest) and UrlPathHelper.getResolvedLookupPath(ServletRequest).
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar(List<String>, List<String>, List<String>)
    as of 6.0.12 in favor of the builder
    org.springframework.asm.Handle(int, String, String, String)
    this constructor has been superseded by Handle(int, String, String, String, boolean).
    org.springframework.beans.factory.support.RootBeanDefinition(ResolvableType)
    as of 6.0.11, in favor of an extra RootBeanDefinition.setTargetType(ResolvableType) call
    org.springframework.core.type.StandardAnnotationMetadata(Class<?>)
    since 5.2 in favor of the factory method AnnotationMetadata.introspect(Class)
    org.springframework.core.type.StandardAnnotationMetadata(Class<?>, boolean)
    since 5.2 in favor of the factory method AnnotationMetadata.introspect(Class). Use MergedAnnotation.asMap from StandardAnnotationMetadata.getAnnotations() rather than AnnotatedTypeMetadata.getAnnotationAttributes(String) if nestedAnnotationsAsMap is false
    org.springframework.core.type.StandardClassMetadata(Class<?>)
    since 5.2 in favor of StandardAnnotationMetadata
    org.springframework.core.type.StandardMethodMetadata(Method)
    since 5.2 in favor of obtaining instances via AnnotationMetadata
    org.springframework.expression.spel.ast.OperatorMatches(int, int, SpelNodeImpl...)
    as of Spring Framework 5.2.23 in favor of invoking OperatorMatches(ConcurrentMap, int, int, SpelNodeImpl...) with a shared pattern cache instead
    org.springframework.http.client.reactive.JettyClientHttpConnector(JettyResourceFactory, Consumer<HttpClient>)
    as of 5.2, in favor of JettyClientHttpConnector(HttpClient, JettyResourceFactory)
    org.springframework.http.converter.HttpMessageNotReadableException(String)
    as of 5.1, in favor of HttpMessageNotReadableException(String, HttpInputMessage)
    org.springframework.http.converter.HttpMessageNotReadableException(String, Throwable)
    as of 5.1, in favor of HttpMessageNotReadableException(String, Throwable, HttpInputMessage)
    org.springframework.scheduling.concurrent.ConcurrentTaskExecutor()
    in favor of ConcurrentTaskExecutor(Executor) with an externally provided Executor
    org.springframework.scheduling.concurrent.ConcurrentTaskScheduler()
    in favor of ConcurrentTaskScheduler(ScheduledExecutorService) with an externally provided Executor
    org.springframework.scheduling.config.FixedDelayTask(Runnable, long, long)
    as of 6.0, in favor on FixedDelayTask(Runnable, Duration, Duration)
    org.springframework.scheduling.config.FixedRateTask(Runnable, long, long)
    as of 6.0, in favor on FixedRateTask(Runnable, Duration, Duration)
    org.springframework.scheduling.config.IntervalTask(Runnable, long)
    as of 6.0, in favor on IntervalTask(Runnable, Duration)
    org.springframework.scheduling.config.IntervalTask(Runnable, long, long)
    as of 6.0, in favor on IntervalTask(Runnable, Duration, Duration)
    org.springframework.scheduling.support.PeriodicTrigger(long)
    as of 6.0, in favor on PeriodicTrigger(Duration)
    org.springframework.scheduling.support.PeriodicTrigger(long, TimeUnit)
    as of 6.0, in favor on PeriodicTrigger(Duration)
    org.springframework.scheduling.support.SimpleTriggerContext(Date, Date, Date)
    as of 6.0, in favor of SimpleTriggerContext(Instant, Instant, Instant)
    org.springframework.test.context.MergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<?>>>, String[], String[], String[], Set<ContextCustomizer>, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    since 6.1 in favor of MergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    org.springframework.test.context.MergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<?>>>, String[], String[], String[], ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    since 6.1 in favor of MergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    org.springframework.test.context.web.WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<?>>>, String[], String[], String[], String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    since 6.1 in favor of WebMergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    org.springframework.test.context.web.WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<?>>>, String[], String[], String[], Set<ContextCustomizer>, String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    since 6.1 in favor of WebMergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
    org.springframework.transaction.interceptor.TransactionInterceptor(PlatformTransactionManager, Properties)
    as of 5.2.5, in favor of TransactionAspectSupport.setTransactionAttributes(Properties)
    org.springframework.transaction.interceptor.TransactionInterceptor(PlatformTransactionManager, TransactionAttributeSource)
    as of 5.2.5, in favor of TransactionInterceptor(TransactionManager, TransactionAttributeSource)
    org.springframework.transaction.jta.SpringJtaSynchronizationAdapter(TransactionSynchronization, TransactionManager)
    as of 6.0.12 since JTA 1.1+ requires implicit rollback-only setting in case of an exception thrown in beforeCompletion, so the regular SpringJtaSynchronizationAdapter(TransactionSynchronization) constructor is sufficient for all scenarios
    org.springframework.transaction.jta.SpringJtaSynchronizationAdapter(TransactionSynchronization, UserTransaction)
    as of 6.0.12 since JTA 1.1+ requires implicit rollback-only setting in case of an exception thrown in beforeCompletion, so the regular SpringJtaSynchronizationAdapter(TransactionSynchronization) constructor is sufficient for all scenarios
    org.springframework.transaction.reactive.GenericReactiveTransaction(Object, boolean, boolean, boolean, boolean, Object)
    org.springframework.transaction.support.DefaultTransactionStatus(Object, boolean, boolean, boolean, boolean, Object)
    org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>)
    in favor of ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object)
    org.springframework.web.bind.MissingServletRequestParameterException(String, String, boolean)
    in favor of MissingServletRequestParameterException(String, MethodParameter, boolean)
    org.springframework.web.HttpMediaTypeException(String)
    as of 6.0
    org.springframework.web.HttpMediaTypeException(String, List<MediaType>)
    as of 6.0
    org.springframework.web.reactive.function.client.ClientRequestObservationContext()
    as of 6.1.2, in favor of ClientRequestObservationContext(ClientRequest.Builder)
    org.springframework.web.reactive.result.method.RequestMappingInfo(String, PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3.4 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.reactive.result.method.RequestMappingInfo(PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3.4 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.reactive.result.method.RequestMappingInfo(RequestMappingInfo, RequestCondition<?>)
    since 5.3.4 in favor of using a RequestMappingInfo.Builder via RequestMappingInfo.mutate().
    org.springframework.web.reactive.socket.HandshakeInfo(URI, HttpHeaders, Mono<Principal>, String, InetSocketAddress, Map<String, Object>, String)
    as of 5.3.5 in favor of HandshakeInfo(URI, HttpHeaders, MultiValueMap, Mono, String, InetSocketAddress, Map, String)
    org.springframework.web.service.invoker.HttpRequestValues(HttpMethod, URI, String, Map<String, String>, HttpHeaders, MultiValueMap<String, String>, Map<String, Object>, Object)
    in favour of HttpRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object) to be removed in 6.2.
    org.springframework.web.servlet.mvc.condition.PatternsRequestCondition(String[], UrlPathHelper, PathMatcher, boolean)
    as of 5.3 in favor of PatternsRequestCondition(String[], boolean, PathMatcher).
    org.springframework.web.servlet.mvc.condition.PatternsRequestCondition(String[], UrlPathHelper, PathMatcher, boolean, boolean)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.condition.PatternsRequestCondition(String[], UrlPathHelper, PathMatcher, boolean, boolean, List<String>)
    as of 5.2.4. See class-level note in RequestMappingHandlerMapping on the deprecation of path extension config options.
    org.springframework.web.servlet.mvc.method.RequestMappingInfo(String, PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.servlet.mvc.method.RequestMappingInfo(PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.servlet.mvc.method.RequestMappingInfo(RequestMappingInfo, RequestCondition<?>)
    since 5.3 in favor of using RequestMappingInfo.addCustomCondition(RequestCondition).
    org.springframework.web.socket.sockjs.client.AbstractClientSockJsSession(TransportRequest, WebSocketHandler, SettableListenableFuture<WebSocketSession>)
    as of 6.0, in favor of AbstractClientSockJsSession(TransportRequest, WebSocketHandler, CompletableFuture)
    org.springframework.web.socket.sockjs.client.WebSocketClientSockJsSession(TransportRequest, WebSocketHandler, SettableListenableFuture<WebSocketSession>)
    as of 6.0, in favor of WebSocketClientSockJsSession(TransportRequest, WebSocketHandler, CompletableFuture)
    org.springframework.web.socket.sockjs.client.XhrClientSockJsSession(TransportRequest, WebSocketHandler, XhrTransport, SettableListenableFuture<WebSocketSession>)
    as of 6.0, in favor of XhrClientSockJsSession(TransportRequest, WebSocketHandler, XhrTransport, CompletableFuture)
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.http.client.observation.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.
    org.springframework.http.HttpStatus.CHECKPOINT
    in favor of HttpStatus.EARLY_HINTS which will be returned from HttpStatus.valueOf(103)
    org.springframework.http.HttpStatus.DESTINATION_LOCKED
    See WebDAV Draft Changes
    org.springframework.http.HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE
    See WebDAV Draft Changes
    org.springframework.http.HttpStatus.METHOD_FAILURE
    See WebDAV Draft Changes
    org.springframework.http.HttpStatus.MOVED_TEMPORARILY
    in favor of HttpStatus.FOUND which will be returned from HttpStatus.valueOf(302)
    org.springframework.http.HttpStatus.REQUEST_ENTITY_TOO_LARGE
    in favor of HttpStatus.PAYLOAD_TOO_LARGE which will be returned from HttpStatus.valueOf(413)
    org.springframework.http.HttpStatus.REQUEST_URI_TOO_LONG
    in favor of HttpStatus.URI_TOO_LONG which will be returned from HttpStatus.valueOf(414)
    org.springframework.http.HttpStatus.USE_PROXY
    due to security concerns regarding in-band configuration of a proxy
    org.springframework.web.reactive.function.client.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.