当我尝试反序列化 PrimaryKey 时抛出错误(序列化与 Jackson 配合得很好)。
我正在尝试以下操作:
Myobject myObject =(Myobject) mapper.convertValue(obj.get("myObject"), MyObject.class);
与对象:
public class MyObject {
private PrimaryKey primaryKey;
private String attributeName;
private String metaDataFieldName;
private long numRepeated;
并得到错误:
java.lang.IllegalArgumentException: (was java.lang.UnsupportedOperationException) (through reference chain: com.scanner.dynamodb.DynamoDBDataLink["primaryKey"]->com.amazonaws.services.dynamodbv2.document.PrimaryKey["componentNameSet"]->java.util.LinkedKeySet[0])
谢谢