Spring Boot: dynamoDB via AWS SDK v2
Create new Spring Boot project
Go to https://start.spring.io/ and add Dependency "Lombok". Click "Generate" button and open project in your favorite IDE
Add dependency
Add DynamoDB dependencyManagement to pom.xml:
software.amazon.awssdk
bom
2.17.267
pom
import
and dependency:
software.amazon.awssdk
dynamodb-enhanced
software.amazon.awssdk
dynamodb
After all: pom.xml:
Create DynamoDbEnhancedClient bean:
Create DynamoDb Entity:
Create DAO service:
Run Application: