Browse Source

Merge branch '2.2.x' into 2.3.x

pull/22996/head
Andy Wilkinson 6 years ago
parent
commit
327138c227
  1. 2
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

2
spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

@ -6591,7 +6591,7 @@ TIP: If you are using `@SpyBean` to spy on a bean with `@Cacheable` methods that @@ -6591,7 +6591,7 @@ TIP: If you are using `@SpyBean` to spy on a bean with `@Cacheable` methods that
This ensures that the parameter names are available to the caching infrastructure once the bean has been spied upon.
TIP: When you are using `@SpyBean` to spy on a bean that is proxied by Spring, you may need to remove Spring's proxy in some situations, for example when setting expectations using `given` or `when`.
Use `AopTestUtils.getTargetProxy(yourProxiedSpy)` to do so.
Use `AopTestUtils.getTargetObject(yourProxiedSpy)` to do so.

Loading…
Cancel
Save