Java – dynamodbmapppingexception: mapping without hash key
•
Java
When writing dynamodb Java application, if the table and its data model are not configured correctly, you can receive "no mapped hash key" error when writing or retrieving from the table The complete exception is similar to:
com. amazonaws. services. dynamodbv2. datamodeling. DynamoDBMappingException:< YourClassNameHere> ;; No hash key mapping
Solution
Ensure that the getter of the annotated mapping class is declared public
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码