From 21aedaad3cece1bf5e4d0f40d899bca7fdcc1f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 15 Dec 2025 15:25:09 +0100 Subject: [PATCH] Refine behavior of @AutoConfigureCache Closes gh-48522 --- .../src/docs/antora/modules/reference/pages/io/caching.adoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io/caching.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io/caching.adoc index aea7f3a4b56..4eb34245a45 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io/caching.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io/caching.adoc @@ -284,8 +284,7 @@ Doing so makes sure that caching is not required by slice tests. For tests that enable a full context, such as javadoc:org.springframework.boot.test.context.SpringBootTest[format=annotation], an explicit configuration overriding the regular configuration is required. If caching is auto-configured, more options are available. -Slice tests are annotated with javadoc:org.springframework.boot.test.autoconfigure.core.AutoConfigureCache[format=annotation], which replaces the auto-configured javadoc:org.springframework.cache.CacheManager[] by a no-op implementation. -Integration tests can also benefit from this feature by annotate the relevant test class as follows: +Tests can be annotated with javadoc:org.springframework.boot.test.autoconfigure.core.AutoConfigureCache[format=annotation] to replace the auto-configured javadoc:org.springframework.cache.CacheManager[] by a no-op implementation. include-code::MyIntegrationTests[]