Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.15 KB

File metadata and controls

62 lines (44 loc) · 1.15 KB

spring-data-aerospike-starters-demo

Work in progress…​ Here are just some initial notes.

Setup project

Initialize project using Spring Boot Initializr https://start.spring.io/

Add production dependencies:

pom.xml
<dependency>
  <groupId>com.aerospike</groupId>
  <artifactId>spring-boot-starter-data-aerospike</artifactId>
  <version>0.6.0</version>
</dependency>

Add test dependencies:

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-aerospike</artifactId>
    <version>2.0.16</version>
    <scope>test</scope>
</dependency>
pom.xml
<dependency>
  <groupId>io.rest-assured</groupId>
  <artifactId>rest-assured</artifactId>
</dependency>

Setup persistence

Create entity.

Create repository interface.

Create test.

embedded.aerospike.dockerImage (default is set to 'aerospike/aerospike-server:4.3.0.8')

Minimal application is up and running.

Voila.