Improve cache sample

Clarify the cache sample and in particular that Infinispan does not
bootstrap with a default configuration file. Hence the custom
`infinispan.xml` configuration is enabled by default if Infinispan is
available on the classpath.

See gh-9417
This commit is contained in:
Stephane Nicoll
2017-06-07 18:41:38 +03:00
parent 9579e95868
commit fc38c1ba4d
3 changed files with 8 additions and 8 deletions

View File

@@ -85,9 +85,8 @@ TIP: Run sample cache application using Hazelcast with
=== Infinispan
Add the `org.infinispan:infinispan-spring4-embedded` dependency to enable support for
Infinispan. There is no default location that Infinispan uses to look for a config
file so if you don't specify anything it will bootstrap on a hardcoded default. You
can set the `spring.cache.infinispan.config` property to use the provided
`infinispan.xml` configuration instead.
file so this sample is configured to use a the provider `infinispan.xml` configuration
file specified via the `spring.cache.infinispan.config` property.
TIP: Run sample cache application using Infinispan with
`$mvn spring-boot:run -Pinfinispan`.