Skip to content

Commit f225945

Browse files
committed
Merge branch '1.5.x' into 2.0.x
2 parents ed615d4 + 3b51d79 commit f225945

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

spring-boot-samples/spring-boot-sample-cache/README.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ compliant implementation and the JSR-107 api. You first need to add
4646
* `Hazelcast`: add `com.hazelcast:hazelcast`
4747
* `Infinispan`: add `org.infinispan:infinispan-jcache`
4848

49-
TIP: Certain cache providers do not create a default cache on-the-fly if it does not
50-
exist so you might need to update the sample to create the caches on startup or
51-
specify the location to the provider-specific file via the
52-
`spring.cache.jcache.config` property.
49+
TIP: Run sample cache application using JCache and EhCache3 by uncommenting the
50+
`spring.cache.jcache.config` property and `$mvn spring-boot:run -Pehcache`.
51+
52+
TIP: Refer to the documentation of the JSR-107 implementation you want to use: certain
53+
cache providers do not create a default cache on-the-fly if it does not exist so you might
54+
need to update the sample to create the caches on startup or specify the location to the
55+
provider-specific file via the `spring.cache.jcache.config` property.
5356

5457
NOTE: Any other JSR-107 compliant provider is also supported but Spring Boot may not
5558
offer a dependency management entry for it. You will have to add it with the version

spring-boot-samples/spring-boot-sample-cache/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@
4545
</plugins>
4646
</build>
4747
<profiles>
48-
<profile>
49-
<id>jcache</id>
50-
<dependencies>
51-
<dependency>
52-
<groupId>javax.cache</groupId>
53-
<artifactId>cache-api</artifactId>
54-
</dependency>
55-
</dependencies>
56-
</profile>
5748
<profile>
5849
<id>caffeine</id>
5950
<dependencies>

spring-boot-samples/spring-boot-sample-cache/src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ management.endpoints.web.exposure.include=*
33
#
44
# Infinispan configuration file location.
55
#
6-
spring.cache.infinispan.config=infinispan.xml
6+
spring.cache.infinispan.config=classpath:infinispan.xml
77

88

99
#
1010
# JCache configuration (example with ehcache 3).
1111
#
12-
#spring.cache.jcache.config=ehcache3.xml
12+
#spring.cache.jcache.config=classpath:ehcache3.xml
1313

1414

1515
#

0 commit comments

Comments
 (0)