From e6313fd96fea40c8dba4c2e654ed0d8ea2b7e496 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Mon, 8 Oct 2018 17:17:45 +0200 Subject: [PATCH] Fix @Cacheable typo Closes gh-14720 --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 6425de7046..fc451b4ed7 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -6392,7 +6392,7 @@ NOTE: While Spring's test framework caches application contexts between tests an a context for tests sharing the same configuration, the use of `@MockBean` or `@SpyBean` influences the cache key, which will most likely increase the number of contexts. -TIP: If you are using `@SpyBean` to spy on a bean with `@Cachable` methods that refer +TIP: If you are using `@SpyBean` to spy on a bean with `@Cacheable` methods that refer to parameter's by name, your application must be compiled with `-parameters`. This ensures that the parameter names are available to the caching infrastructure once the bean has been spied upon.