Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
4b297060
Commit
4b297060
authored
Oct 04, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
d0e49cc4
7019894f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+14
-10
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
4b297060
...
@@ -3780,9 +3780,10 @@ enabled via the `@EnableCaching` annotation.
...
@@ -3780,9 +3780,10 @@ enabled via the `@EnableCaching` annotation.
NOTE: If you are using the cache infrastructure with beans that are not interface-based,
NOTE: If you are using the cache infrastructure with beans that are not interface-based,
make sure to enable the `proxyTargetClass` attribute of `@EnableCaching`.
make sure to enable the `proxyTargetClass` attribute of `@EnableCaching`.
TIP: Use the `spring-boot-starter-cache` '`Starter`' to quickly add required caching
TIP: Use the `spring-boot-starter-cache` '`Starter`' to quickly add basic caching
dependencies. If you are adding dependencies manually you should note that certain
dependencies. The starter brings `spring-context-support`: if you are adding dependencies
implementations are only provided by the `spring-context-support` jar.
manually, you must include it if you intend to use the JCache, EhCache 2.x or Guava
support.
If you haven't defined a bean of type `CacheManager` or a `CacheResolver` named
If you haven't defined a bean of type `CacheManager` or a `CacheResolver` named
`cacheResolver` (see `CachingConfigurer`), Spring Boot tries to detect the following
`cacheResolver` (see `CachingConfigurer`), Spring Boot tries to detect the following
...
@@ -3840,9 +3841,10 @@ Generic caching is used if the context defines _at least_ one
...
@@ -3840,9 +3841,10 @@ Generic caching is used if the context defines _at least_ one
[[boot-features-caching-provider-jcache]]
[[boot-features-caching-provider-jcache]]
==== JCache (JSR-107)
==== JCache (JSR-107)
JCache is bootstrapped via the presence of a `javax.cache.spi.CachingProvider` on the
JCache is bootstrapped via the presence of a `javax.cache.spi.CachingProvider` on the
classpath (i.e. a JSR-107 compliant caching library). There are various compliant
classpath (i.e. a JSR-107 compliant caching library) and the `JCacheCacheManager`
provided by the `spring-boot-starter-cache` '`Starter`'. There are various compliant
libraries out there and Spring Boot provides dependency management for Ehcache 3,
libraries out there and Spring Boot provides dependency management for Ehcache 3,
Hazelcast and Infinispan
)
. Any other compliant library can be added as well.
Hazelcast and Infinispan. Any other compliant library can be added as well.
It might happen that more than one provider is present, in which case the provider must
It might happen that more than one provider is present, in which case the provider must
be explicitly specified. Even if the JSR-107 standard does not enforce a standardized
be explicitly specified. Even if the JSR-107 standard does not enforce a standardized
...
@@ -3877,8 +3879,9 @@ abstraction expects. No further customization is applied on it.
...
@@ -3877,8 +3879,9 @@ abstraction expects. No further customization is applied on it.
[[boot-features-caching-provider-ehcache2]]
[[boot-features-caching-provider-ehcache2]]
==== EhCache 2.x
==== EhCache 2.x
EhCache 2.x is used if a file named `ehcache.xml` can be found at the root of the
EhCache 2.x is used if a file named `ehcache.xml` can be found at the root of the
classpath. If EhCache 2.x and such file is present it is used to bootstrap the cache
classpath. If EhCache 2.x, the `EhCacheCacheManager` provided by the
manager. An alternate configuration file can be provide a well using:
`spring-boot-starter-cache` '`Starter`' and such file is present it is used to bootstrap
the cache manager. An alternate configuration file can be provide a well using:
[source,properties,indent=0]
[source,properties,indent=0]
----
----
...
@@ -3992,9 +3995,10 @@ recommend to keep this setting enabled if you create your own `RedisCacheManager
...
@@ -3992,9 +3995,10 @@ recommend to keep this setting enabled if you create your own `RedisCacheManager
[[boot-features-caching-provider-caffeine]]
[[boot-features-caching-provider-caffeine]]
==== Caffeine
==== Caffeine
Caffeine is a Java 8 rewrite of Guava’s cache and will supersede the Guava support in
Caffeine is a Java 8 rewrite of Guava’s cache and will supersede the Guava support in
Spring Boot 2.0. If Caffeine is present, a `CaffeineCacheManager` is auto-configured.
Spring Boot 2.0. If Caffeine is present, a `CaffeineCacheManager` (provided by the
Caches can be created on startup using the `spring.cache.cache-names` property and
`spring-boot-starter-cache` '`Starter`') is auto-configured. Caches can be created on
customized by one of the following (in this order):
startup using the `spring.cache.cache-names` property and customized by one of the
following (in this order):
1. A cache spec defined by `spring.cache.caffeine.spec`
1. A cache spec defined by `spring.cache.caffeine.spec`
2. A `com.github.benmanes.caffeine.cache.CaffeineSpec` bean is defined
2. A `com.github.benmanes.caffeine.cache.CaffeineSpec` bean is defined
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment