Skip to content

Commit

Permalink
Improve caching documentation
Browse files Browse the repository at this point in the history
Add a note regarding the use of `@EnableCaching(proxyTargetClass=true)`
for beans that are not interface based.

Closes spring-projectsgh-5527
  • Loading branch information
snicoll committed Apr 8, 2016
1 parent 4e4ea4b commit 99dae09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3458,6 +3458,9 @@ materialized by the `org.springframework.cache.Cache` and
suitable `CacheManager` according to the implementation as long as the caching support is
enabled via the `@EnableCaching` annotation.

NOTE: If you are using the cache infrastructure with beans that are not interface-based,
make sure to enable the `proxyTargetClass` attribute of `@EnableCaching`.

TIP: Use the `spring-boot-starter-cache` "`Starter POM`" to quickly add required caching
dependencies. If you are adding dependencies manually you should note that certain
implementations are only provided by the `spring-context-support` jar.
Expand Down

0 comments on commit 99dae09

Please sign in to comment.