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 7.1, in favor ofBeanOverrideUtils.findHandlersForFields(Class)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 Spring Framework 6.2.4, in favor ofAbstractGenericWebContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of 7.1 in favor ofJsonComparator.of(JsonCompareMode), which supports both JsonUnit and JSONassert, or a customJsonComparatorimplementationin favor of callingString.formatted(Object...)upfrontas of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).in 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 Jupiteras of 7.1 in favor ofJsonComparator.of(JsonCompareMode), which supports both JsonUnit and JSONassert, or a customJsonComparatorimplementationin 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.0As of Spring Framework 7.1, in favor ofBeanOverrideUtils.findHandlersForFields(Class)since 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 Spring Framework 6.2.4, in favor ofAbstractGenericWebContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints); to be removed in Spring Framework 8.0as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).as of 7.1 in favor ofMockRestServiceServer.bindTo(RestClient.Builder).in 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)in favor of callingString.formatted(Object...)upfront