Skip to content

spring boot application utilizing dynamodb with the v2 aws sdk and dynamodb local for testing

Notifications You must be signed in to change notification settings

brianmaresca/springboot-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring boot + aws sdk v2 + dynamodb example application

Main Features

  • spring data "ish" dynamodb @Repository classes. create a repository class like BooksRepository, extending DynamoDbRepository
  • tables get created on startup, dynamodb annotations allow the table to be configured appropriately
  • custom dynamodb converter provider class to serialize/deserialize enum values into their string form, as indicated by @JsonValue
  • logging filter to create a request id for every api request and include in every log statement

Testing

  • tests that extend AbstractBaseTest start up an embedded locally dynamodb server that backs the tests
  • must do a one time mvn build to pull down sql lite libraries needed by embedded dynamodb local

Running the application locally

  • before starting the application, run docker-compose up from the dynamodblocal-docker directory
  • start the application with the "dev" profile

About

spring boot application utilizing dynamodb with the v2 aws sdk and dynamodb local for testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages