top of page

DynamoDB setup with Java SDK, Spring Boot


1. Create Spring Boot application at https://start.spring.io/ . And generate project.


2. Import maven project into Eclipse IDE or any other IDEs.


3. Add following in pom.xml


<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-dynamodb -->

<dependency>

<groupId>com.amazonaws</groupId>

<artifactId>aws-java-sdk-dynamodb</artifactId>

<version>1.11.584</version>

</dependency>


4. Update maven project.

5. In, initializer, which is start of the Spring application.



For connecting with local DyanmoDB, you can set any "accessKey" and "secretKey". And end point should be url of local dynamoDB.

Note


The AWS SDK for Java requires Java 8.0 or later.


Comments


Single post: Blog_Single_Post_Widget
bottom of page