File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
spring-boot-samples/spring-boot-sample-cache Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,8 @@ TIP: Run sample cache application using Hazelcast with
85
85
=== Infinispan
86
86
Add the `org.infinispan:infinispan-spring4-embedded` dependency to enable support for
87
87
Infinispan. There is no default location that Infinispan uses to look for a config
88
- file so if you don't specify anything it will bootstrap on a hardcoded default. You
89
- can set the `spring.cache.infinispan.config` property to use the provided
90
- `infinispan.xml` configuration instead.
88
+ file so this sample is configured to use a the provider `infinispan.xml` configuration
89
+ file specified via the `spring.cache.infinispan.config` property.
91
90
92
91
TIP: Run sample cache application using Infinispan with
93
92
`$mvn spring-boot:run -Pinfinispan`.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ 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 =infinispan.xml
7
7
8
8
9
9
#
@@ -15,10 +15,10 @@ management.security.enabled=false
15
15
#
16
16
# Caffeine configuration
17
17
#
18
- # spring.cache.caffeine.spec=maximumSize=200,expireAfterAccess=600s
18
+ spring.cache.caffeine.spec =maximumSize=200,expireAfterAccess=600s
19
19
20
20
21
21
#
22
22
# Guava configuration
23
23
#
24
- # spring.cache.guava.spec=maximumSize=200,expireAfterAccess=600s
24
+ spring.cache.guava.spec =maximumSize=200,expireAfterAccess=600s
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <infinispan xmlns =" urn:infinispan:config:7 .2" >
2
+ <infinispan xmlns =" urn:infinispan:config:8 .2" >
3
3
4
4
<cache-container default-cache =" default" >
5
- <local-cache name =" countries" statistics =" true" >
5
+ <local-cache name =" default" />
6
+ <local-cache name =" countries" >
6
7
<eviction max-entries =" 200" />
7
8
<expiration lifespan =" 600000" />
8
9
</local-cache >
You can’t perform that action at this time.
0 commit comments