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.http.client.HttpComponentsClientHttpRequestFactory.setReadTimeout(int)
    as of 6.0, in favor of SocketConfig.Builder.setSoTimeout(Timeout), see above.
    org.springframework.http.client.reactive.ClientHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ClientHttpResponse.getStatusCode()
    org.springframework.http.codec.multipart.DefaultPartHttpMessageReader.setStreaming(boolean)
    as of 6.0, in favor of PartEvent and PartEventHttpMessageReader
    org.springframework.http.HttpMethod.resolve(String)
    in favor of HttpMethod.valueOf(String)
    org.springframework.http.HttpRequest.getMethodValue()
    as of Spring Framework 6.0 in favor of HttpRequest.getMethod() and HttpMethod.name()
    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.scheduling.support.CronSequenceGenerator
    as of 5.3, in favor of CronExpression
    org.springframework.scheduling.support.CronSequenceGenerator(String)
    as of 5.3, in favor of CronExpression.parse(String)
    org.springframework.test.web.reactive.server.ExchangeResult.getRawStatusCode()
    as of 6.0, in favor of ExchangeResult.getStatus()
    org.springframework.util.Assert.doesNotContain(String, String)
    as of 4.3.7, in favor of Assert.doesNotContain(String, String, String); to be removed in 6.1
    org.springframework.util.Assert.hasLength(String)
    as of 4.3.7, in favor of Assert.hasLength(String, String); to be removed in 6.1
    org.springframework.util.Assert.hasText(String)
    as of 4.3.7, in favor of Assert.hasText(String, String); to be removed in 6.1
    org.springframework.util.Assert.isNull(Object)
    as of 4.3.7, in favor of Assert.isNull(Object, String); to be removed in 6.1
    org.springframework.util.Assert.isTrue(boolean)
    as of 4.3.7, in favor of Assert.isTrue(boolean, String); to be removed in 6.1
    org.springframework.util.Assert.noNullElements(Object[])
    as of 4.3.7, in favor of Assert.noNullElements(Object[], String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Object[])
    as of 4.3.7, in favor of Assert.notEmpty(Object[], String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Collection<?>)
    as of 4.3.7, in favor of Assert.notEmpty(Collection, String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Map<?, ?>)
    as of 4.3.7, in favor of Assert.notEmpty(Map, String); to be removed in 6.1
    org.springframework.util.Assert.notNull(Object)
    as of 4.3.7, in favor of Assert.notNull(Object, String); to be removed in 6.1
    org.springframework.util.Assert.state(boolean)
    as of 4.3.7, in favor of Assert.state(boolean, String); to be removed in 6.1
    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.web.HttpRequestMethodNotSupportedException(String, String)
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    org.springframework.web.HttpRequestMethodNotSupportedException(String, String[])
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    org.springframework.web.HttpRequestMethodNotSupportedException(String, String[], String)
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    org.springframework.web.reactive.function.client.ClientResponse.rawStatusCode()
    as of 6.0, in favor of ClientResponse.statusCode()
    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.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.
  • 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.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.cglib.core.TinyBitSet
    org.springframework.http.client.AbstractClientHttpResponse
    as of 6.0, with no direct replacement
    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.scheduling.support.CronSequenceGenerator
    as of 5.3, in favor of CronExpression
    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.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.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.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_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.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.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.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.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)
    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(), which does not share data and returns a copy.
    org.springframework.core.io.buffer.DataBuffer.asByteBuffer(int, int)
    as of 6.0, in favor of DataBuffer.toByteBuffer(int, int), which does not share data and returns a copy.
    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.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.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.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.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.core.task.support.TaskExecutorAdapter.execute(Runnable, long)
    org.springframework.core.test.tools.ResourceFile.assertThat()
    use assertThat(sourceFile) rather than calling this method directly.
    org.springframework.core.test.tools.SourceFile.assertThat()
    use assertThat(sourceFile) rather than calling this method directly.
    org.springframework.http.client.ClientHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ClientHttpResponse.getStatusCode()
    org.springframework.http.client.HttpComponentsClientHttpRequestFactory.setReadTimeout(int)
    as of 6.0, in favor of SocketConfig.Builder.setSoTimeout(Timeout), see above.
    org.springframework.http.client.reactive.ClientHttpResponse.getRawStatusCode()
    as of 6.0, in favor of ClientHttpResponse.getStatusCode()
    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.multipart.DefaultPartHttpMessageReader.setStreaming(boolean)
    as of 6.0, in favor of PartEvent and PartEventHttpMessageReader
    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.HttpMethod.resolve(String)
    in favor of HttpMethod.valueOf(String)
    org.springframework.http.HttpRequest.getMethodValue()
    as of Spring Framework 6.0 in favor of HttpRequest.getMethod() and HttpMethod.name()
    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()
    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.datasource.init.ScriptUtils.containsSqlScriptDelimiters(String, String)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.readScript(LineNumberReader, String[], String, String)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.readScript(LineNumberReader, String, String, String)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.splitSqlScript(String, char, List<String>)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.splitSqlScript(String, String, List<String>)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.splitSqlScript(EncodedResource, String, String, String[], String, String, List<String>)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    org.springframework.jdbc.datasource.init.ScriptUtils.splitSqlScript(EncodedResource, String, String, String, String, String, List<String>)
    as of Spring Framework 5.2.16 with no plans for replacement. This is an internal API and will likely be removed in Spring Framework 6.0.
    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.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.client.MockClientHttpResponse.getRawStatusCode()
    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.scheduling.concurrent.ConcurrentTaskExecutor.execute(Runnable, long)
    org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.execute(Runnable, long)
    org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.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.quartz.SimpleThreadPoolTaskExecutor.execute(Runnable, long)
    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.support.AbstractGenericContextLoader.loadContext(String...)
    as of Spring Framework 6.0, in favor of AbstractGenericContextLoader.loadContext(MergedContextConfiguration)
    org.springframework.test.web.reactive.server.ExchangeResult.getRawStatusCode()
    as of 6.0, in favor of ExchangeResult.getStatus()
    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.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.Assert.doesNotContain(String, String)
    as of 4.3.7, in favor of Assert.doesNotContain(String, String, String); to be removed in 6.1
    org.springframework.util.Assert.hasLength(String)
    as of 4.3.7, in favor of Assert.hasLength(String, String); to be removed in 6.1
    org.springframework.util.Assert.hasText(String)
    as of 4.3.7, in favor of Assert.hasText(String, String); to be removed in 6.1
    org.springframework.util.Assert.isNull(Object)
    as of 4.3.7, in favor of Assert.isNull(Object, String); to be removed in 6.1
    org.springframework.util.Assert.isTrue(boolean)
    as of 4.3.7, in favor of Assert.isTrue(boolean, String); to be removed in 6.1
    org.springframework.util.Assert.noNullElements(Object[])
    as of 4.3.7, in favor of Assert.noNullElements(Object[], String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Object[])
    as of 4.3.7, in favor of Assert.notEmpty(Object[], String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Collection<?>)
    as of 4.3.7, in favor of Assert.notEmpty(Collection, String); to be removed in 6.1
    org.springframework.util.Assert.notEmpty(Map<?, ?>)
    as of 4.3.7, in favor of Assert.notEmpty(Map, String); to be removed in 6.1
    org.springframework.util.Assert.notNull(Object)
    as of 4.3.7, in favor of Assert.notNull(Object, String); to be removed in 6.1
    org.springframework.util.Assert.state(boolean)
    as of 4.3.7, in favor of Assert.state(boolean, String); to be removed in 6.1
    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
    org.springframework.util.ClassUtils.isCglibProxyClass(Class<?>)
    as of 5.2, in favor of custom (possibly narrower) checks
    org.springframework.util.ClassUtils.isCglibProxyClassName(String)
    as of 5.2, in favor of custom (possibly narrower) checks
    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.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.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.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.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.ClientResponse.rawStatusCode()
    as of 6.0, in favor of ClientResponse.statusCode()
    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.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.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.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.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.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.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.asm.Handle(int, String, String, String)
    this constructor has been superseded by Handle(int, String, String, String, boolean).
    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.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.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.CronSequenceGenerator(String)
    as of 5.3, in favor of CronExpression.parse(String)
    org.springframework.scheduling.support.CronSequenceGenerator(String, TimeZone)
    as of 5.3, in favor of CronExpression.parse(String)
    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.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.web.HttpMediaTypeException(String)
    as of 6.0
    org.springframework.web.HttpMediaTypeException(String, List<MediaType>)
    as of 6.0
    org.springframework.web.HttpRequestMethodNotSupportedException(String, String)
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    org.springframework.web.HttpRequestMethodNotSupportedException(String, String[])
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    org.springframework.web.HttpRequestMethodNotSupportedException(String, String[], String)
    in favor of HttpRequestMethodNotSupportedException(String, Collection)
    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.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.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
OSZAR »