You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Inject everything you want as this is created like a normal bean
@Autowired
DynamoDBTemplate dynamoDBTemplate;
@Override
public String fancyCustomMethod() {
// custom code here
DeviceValue dv = dynamoDBTemplate.load(DeviceValue.class, "42");
if (dv == null) {
return "Not found";
} else {
return dv.getTag();
}
}
}
`
However, it seems the spring container does not contain dynamoDBTemplate. So how can I use dynamoDBTemplate in my own repository?
Activity
efenderbosch commentedon Jan 17, 2020
We are doing this. Inject
DynamoDBOperationsinstead as that's the interface.