First, we need to modify our Spring boot project dependency to add Apache Ignite support. Edit the build.gradle and add the following dependencies:
compile group: 'org.apache.ignite', name: 'ignite-core', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-spring', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-hibernate_5.1', version: '2.5.2' compile group: 'com.h2database', name: 'h2', version: '1.4.195'
The ignite-hibernate_5.1 is required for L2 caching, but this jar is not available in Maven central due to a licensing issue. We need to add the gridgain Maven repo in our build.gradle to bring this jar. ...