이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 1. Setting Up Your Project
Add dependencies for the Data Grid Spring Boot Starter to your project.
1.1. Enforcing Data Grid Versions 링크 복사링크가 클립보드에 복사되었습니다!
This starter uses a high-level API to ensure compatibility between major versions of Data Grid. However you can enforce a specific version of Data Grid with the infinispan-bom module.
Procedure
Add
infinispan-bomto yourpom.xmlfile before the starter dependencies.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The Data Grid Spring Boot starter uses different Spring Boot versions to other projects such as Red Hat OpenShift Application Runtimes. If you want to use a specific Spring Boot version for compatibility with other projects, you must add the correct dependency to your project.
1.2. Adding Dependencies for Usage Modes 링크 복사링크가 클립보드에 복사되었습니다!
Data Grid provides different dependencies for embedded caches and remote caches.
Procedure
-
Add one of the following to your
pom.xmlfile:
Embedded caches
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-spring-boot-starter-embedded</artifactId> </dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-spring-boot-starter-embedded</artifactId>
</dependency>
Remote caches
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-spring-boot-starter-remote</artifactId> </dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-spring-boot-starter-remote</artifactId>
</dependency>