spring-data - 使用 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” 吗?
我该如何解决这个问题?
解决方案
推荐阅读
- typescript - 错误:{"message":"sqlite3_prepare_v2 失败:无法识别的令牌:\"876EL003\"","code":5}
- javascript - 如何使用 socket.io 与前端通信?
- python - 如何在熊猫中获得连续滚动平均值?
- php - 在 Windows Server 2016 + Apache / MySQL 上部署应用程序的安全方式
- function - 在 Flutter/Dart 中,有什么方法可以直接调用作为可选参数传递的函数,同时还可以防止空值错误?
- sql - 红移四舍五入问题
- python - 为什么逻辑回归图中所有不同的散点都紧密地聚集在同一区域?
- laravel - 如果有相同的数据,如何在 EAV laravel 中检索一个数据
- android - 原因:无法猜测 com.example.newmvvm.ListViewModel.listViewModel
- python - 无法在tensorflow中打印神经网络的输出