gpt4 book ai didi

java - 为什么无法解析符号 TransactionWriteRequest 或 TransactionLoadRequest?

转载 作者:行者123 更新时间:2023-12-02 03:15:05 26 4
gpt4 key购买 nike

我正在研究 dynamodb,并运行示例代码。我已经导入了所有依赖项,但它说

Cannot resolve symbol 'TransactionWriteRequest', 'TransactionLoadRequest','TransactionCanceledException' or 'DynamoDBTransactionWriteExpression'.

pom.xml:

xml
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.327</version>
</dependency>
</dependencies>

java:

import com.amazonaws.services.dynamodbv2.datamodeling.TransactionWriteRequest;
import com.amazonaws.services.dynamodbv2.datamodeling.TransactionLoadRequest;
import com.amazonaws.services.dynamodbv2.model.TransactionCanceledException;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTransactionWriteExpression;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTransactionLoadExpression;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException;
import com.amazonaws.services.dynamodbv2.model.ResourceNotFoundException;
import com.amazonaws.services.dynamodbv2.model.InternalServerErrorException;

最佳答案

尝试将 aws-java-sdk-dynamodb 依赖项版本升级到 1.11.590。

关于java - 为什么无法解析符号 TransactionWriteRequest 或 TransactionLoadRequest?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56967031/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com