首页 > 解决方案 > 使用 SpringData 从 Aerospike 获取多个值

问题描述

我想使用 Aerospike 存储库获取多个数据。我定义了一个方法:

List<Profile> findByIds(List<String> profilekeys, Class<Profile> class1);

并尝试将其用作:

 profileRepository.findByIds(profilekeys, Profile.class);

简介是:

@Id
private String id;
private String obj;

但是,我遇到了以下问题:

找不到类型配置文件的属性 ID!您指的是 “id” 吗?

我该如何解决这个问题?

标签: spring-dataaerospike

解决方案


推荐阅读