Favor JSR-107 provider if present

Previously, native cache libraries were favored over a standard JSR-107
implementation. If a user has a working setup using JCache with one
provider and switch to another provider, his setup may be broken if we
happen to provide a native support for the new provider.

We now consistently favor JSR-107 if it is present. Native support can
still be enabled via the `spring.cache.type` property.

Closes gh-3822
This commit is contained in:
Stephane Nicoll
2015-08-25 15:07:24 +02:00
parent 79b9bdec62
commit 63d157bb7c
5 changed files with 67 additions and 53 deletions

View File

@@ -7,7 +7,6 @@
#
# JCache configuration (example with hazelcast).
#
#spring.cache.type=jcache
#spring.cache.jcache.config=hazelcast.xml