尝试使用 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;
梦里花落0921
相关分类