尝试使用 AWS DynamoDB Java API 创建AmazonDynamoDBClient对象并收到错误按照这个例子:https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CodeSamples.Java.html使用 AWS DynamoDB SDK (Java):完整内容pom.xml如下代码:AmazonDynamoDBClient dynamoDBclient = new AmazonDynamoDBClientBuilder.standard()
.withRegion(Regions.US_WEST_2)
.build();错误:无法解析符号“标准”我使用 Java 8、IntelliJ IDE 和 Maven 作为构建工具我的进口:import com.amazonaws.regions.Regions;import com.amazonaws.services.dynamodbv2.document.DynamoDB;import com.amazonaws.services.dynamodbv2.document.Item;import com.amazonaws.services.dynamodbv2.document.PutItemOutcome;import com.amazonaws.services.dynamodbv2.document.spec.PutItemSpec;import com.amazonaws.services.dynamodbv2.model.ConditionalCheckFailedException;import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
1 回答
梦里花落0921
TA贡献1772条经验 获得超6个赞
应该是AmazonDynamoDBClientBuilder.standard()
,不是new AmazonDynamoDBClientBuilder.standard()
。删除new
关键字。
添加回答
举报
0/150
提交
取消