This is an example of how to use Spring Boot with Hazelcast {hazelcast-cloud}.
Tip
|
For step-by-step instructions of how to run this app, see the tutorial. |
-
Add the required properties to
spring-sample/src/main/resources/application.properties
:-
clusterId
-
discoveryToken
-
keyStorePassword
-
trustStorePassword
(same askeyStorePassword
)
-
-
Add the keystore and truststore for your cluster to
spring-sample/src/main/resources
. -
Execute the following to run the sample:
./mvnw spring-boot:run
If you want to try this application in the UAT or DEV environment, edit the src/main/java/sample/com/hazelcast/demo/cloud/HzCloudDemoApplication.java
file to include the environment URL:
// For DEV, use https://test.dev.hazelcast.cloud
config.setProperty("hazelcast.client.cloud.url", "https://uat.hazelcast.cloud");