Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionas of Spring Framework 6.2.4, in favor of
AotContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0As of Spring Framework 6.2.6, in favor ofBeanOverrideHandler(Field, ResolvableType, String, String, BeanOverrideStrategy)as of Spring Framework 6.2.4, in favor ofAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of Spring Framework 6.2.4, in favor ofAbstractGenericContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of Spring Framework 6.2.4, in favor ofAbstractGenericWebContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0in favor of static factory methods inJsonConverterDelegateorg.springframework.test.json.AbstractJsonValueAssert(Object, Class<?>, HttpMessageContentConverter) in favour ofJsonContent(String, JsonConverterDelegate)in favor of callingString.formatted(Object...)upfrontin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsorg.springframework.test.web.reactive.server.CookieAssertions.value(String, Matcher<? super String>) in favor ofConsumer-based variantsorg.springframework.test.web.reactive.server.HeaderAssertions.value(String, Matcher<? super String>) in favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variants, and AssertJ support viaWebTestClientResponsein favor ofConsumer-based variants, and AssertJ support viaWebTestClientResponsein favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsuse ofPathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionsince Spring Framework 7.0 with no replacementsince Spring Framework 7.0 in favor of the
SpringExtensionand JUnit Jupitersince Spring Framework 7.0 with no replacementsince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupiterin favor of static factory methods inJsonConverterDelegatein favor of usingJSONAssertdirectly or theJsonComparatorabstractionin favor ofMockMvcClientHttpRequestFactory, or consider also usingRestTestClient.bindTo(MockMvc)for tests against a MockMvc server through a test client.
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionsince Spring Framework 7.0 in favor of the
SpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupitersince Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupiter
-
Deprecated MethodsMethodDescriptionas of Spring Framework 6.2.4, in favor of
AotContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0since Spring Framework 7.0 in favor ofContextCache.put(MergedContextConfiguration, LoadFunction)as of Spring Framework 6.0, in favor of methods defined in theSmartContextLoaderSPIas of Spring Framework 6.0, in favor of methods defined in theSmartContextLoaderSPIsince 6.1 in favor ofMergedContextConfiguration.getPropertySourceDescriptors()as of Spring Framework 6.2.4, in favor ofAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of Spring Framework 6.0, in favor ofAbstractGenericContextLoader.loadContext(MergedContextConfiguration)as of Spring Framework 6.2.4, in favor ofAbstractGenericContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of 6.2.13, in favor ofTestConstructorUtils.isAutowirableConstructor(Executable, PropertyProvider); to be removed in Spring Framework 7.1as of Spring Framework 6.2.4, in favor ofAbstractGenericWebContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0in favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsorg.springframework.test.web.reactive.server.CookieAssertions.value(String, Matcher<? super String>) in favor ofConsumer-based variantsorg.springframework.test.web.reactive.server.HeaderAssertions.value(String, Matcher<? super String>) in favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variants, and AssertJ support viaWebTestClientResponsein favor ofConsumer-based variants, and AssertJ support viaWebTestClientResponsein favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofConsumer-based variantsin favor ofMockMvcRequestBuilders.request(HttpMethod, URI)since 7.0, since this is now unassignedsince 7.0, this was marked as unused in RFC 9110since 7.0, this is now marked as "historic" and not endorsed by a standards body.since 7.0 in favor ofStatusResultMatchers.isContentTooLarge()since 7.0, removed from WebDAV specificationsince 7.0 in favor ofStatusResultMatchers.isUnprocessableContent()use ofPathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.
-
Deprecated ConstructorsConstructorDescriptionAs of Spring Framework 6.2.6, in favor of
BeanOverrideHandler(Field, ResolvableType, String, String, BeanOverrideStrategy)org.springframework.test.json.AbstractJsonValueAssert(Object, Class<?>, HttpMessageContentConverter) in favour ofJsonContent(String, JsonConverterDelegate)in favor of callingString.formatted(Object...)upfront