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
6e92c4dd
Commit
6e92c4dd
authored
Sep 22, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
e2bc24e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
README.adoc
spring-boot-samples/spring-boot-sample-cache/README.adoc
+7
-4
application.properties
...ot-sample-cache/src/main/resources/application.properties
+2
-2
No files found.
spring-boot-samples/spring-boot-sample-cache/README.adoc
View file @
6e92c4dd
...
@@ -47,10 +47,13 @@ compliant implementation and the JSR-107 api. You first need to add
...
@@ -47,10 +47,13 @@ compliant implementation and the JSR-107 api. You first need to add
* `Hazelcast`: add `com.hazelcast:hazelcast`
* `Hazelcast`: add `com.hazelcast:hazelcast`
* `Infinispan`: add `org.infinispan:infinispan-jcache`
* `Infinispan`: add `org.infinispan:infinispan-jcache`
TIP: Certain cache providers do not create a default cache on-the-fly if it does not
TIP: Run sample cache application using JCache and EhCache3 by uncommenting the
exist so you might need to update the sample to create the caches on startup or
`spring.cache.jcache.config` property and `$mvn spring-boot:run -Pehcache`.
specify the location to the provider-specific file via the
`spring.cache.jcache.config` property.
TIP: Refer to the documentation of the JSR-107 implementation you want to use: certain
cache providers do not create a default cache on-the-fly if it does not exist so you might
need to update the sample to create the caches on startup or specify the location to the
provider-specific file via the `spring.cache.jcache.config` property.
NOTE: Any other JSR-107 compliant provider is also supported but Spring Boot may not
NOTE: Any other JSR-107 compliant provider is also supported but Spring Boot may not
offer a dependency management entry for it. You will have to add it with the version
offer a dependency management entry for it. You will have to add it with the version
...
...
spring-boot-samples/spring-boot-sample-cache/src/main/resources/application.properties
View file @
6e92c4dd
...
@@ -3,13 +3,13 @@ management.security.enabled=false
...
@@ -3,13 +3,13 @@ management.security.enabled=false
#
#
# Infinispan configuration file location.
# Infinispan configuration file location.
#
#
spring.cache.infinispan.config
=
infinispan.xml
spring.cache.infinispan.config
=
classpath:
infinispan.xml
#
#
# JCache configuration (example with ehcache 3).
# JCache configuration (example with ehcache 3).
#
#
#spring.cache.jcache.config=ehcache3.xml
#spring.cache.jcache.config=
classpath:
ehcache3.xml
#
#
...
...
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