[英]How to setup java for dynamo db for first time?
I am new to use Dynamo DB ,我刚开始使用Dynamo DB ,
I want to know how to setup pom.xml like if I use maven what is dependency use for dynamodb我想知道如何设置pom.xml就像我使用 maven 什么是dynamodb的依赖使用
<dependencies>
<dependency>
<groupId>??</groupId>
<artifactId>??</artifactId>
<version>??</version>
<scope>test</scope>
</dependency>
<dependency>
or any example source code which I can research how to use it?或者我可以研究如何使用它的任何示例源代码?
For dynamodb and how to setup like list of table and create column one by one in dynamodb any source can i read?对于 dynamodb 以及如何像表列表一样设置并在 dynamodb 中一一创建列我可以阅读任何来源吗?
if you want to use aws dynamo DB so you can use following code:如果你想使用 aws dynamo DB,那么你可以使用以下代码:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-dynamodb</artifactId>
<version>1.11.784</version>
</dependency>
you can use following example for setup by using below link https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CodeSamples.Java.html您可以通过以下链接使用以下示例进行设置https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CodeSamples.Java.html
Dependency in pom is: pom 中的依赖是:
<dependency>
<groupId>com.github.derjust</groupId>
<artifactId>spring-data-dynamodb</artifactId>
<version>5.1.0</version>
</dependency>
Next if You want to use it in code You need to read about @DynamoDBTable.接下来,如果您想在代码中使用它,您需要阅读@DynamoDBTable。 Best lecture about it have of course Baeldung
关于它的最佳讲座当然有Baeldung
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.