File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
spring-boot-samples/spring-boot-sample-cache Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,13 @@ compliant implementation and the JSR-107 api. You first need to add
47
47
* `Hazelcast`: add `com.hazelcast:hazelcast`
48
48
* `Infinispan`: add `org.infinispan:infinispan-jcache`
49
49
50
- TIP: Certain cache providers do not create a default cache on-the-fly if it does not
51
- exist so you might need to update the sample to create the caches on startup or
52
- specify the location to the provider-specific file via the
53
- `spring.cache.jcache.config` property.
50
+ TIP: Run sample cache application using JCache and EhCache3 by uncommenting the
51
+ `spring.cache.jcache.config` property and `$mvn spring-boot:run -Pehcache`.
52
+
53
+ TIP: Refer to the documentation of the JSR-107 implementation you want to use: certain
54
+ cache providers do not create a default cache on-the-fly if it does not exist so you might
55
+ need to update the sample to create the caches on startup or specify the location to the
56
+ provider-specific file via the `spring.cache.jcache.config` property.
54
57
55
58
NOTE: Any other JSR-107 compliant provider is also supported but Spring Boot may not
56
59
offer a dependency management entry for it. You will have to add it with the version
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ management.security.enabled=false
3
3
#
4
4
# Infinispan configuration file location.
5
5
#
6
- spring.cache.infinispan.config =infinispan.xml
6
+ spring.cache.infinispan.config =classpath: infinispan.xml
7
7
8
8
9
9
#
10
10
# JCache configuration (example with ehcache 3).
11
11
#
12
- # spring.cache.jcache.config=ehcache3.xml
12
+ # spring.cache.jcache.config=classpath: ehcache3.xml
13
13
14
14
15
15
#
You can’t perform that action at this time.
0 commit comments