mongodb - 如何从使用 MongoItemReader (Springbatch) 读取的对象中迭代列表
问题描述
如何使用 MongoItemReader 读取对象中的列表,然后从我刚刚读取的对象(父对象)中迭代列表子对象。
前任 :
<classRoom>
<studentList>
<student>
..
</student>
<student>
..
</student>
</studentList>
我是否通过 mongoItemreader 检索 classRoom .. 但我希望读者在调用 ItemProcessor 之前按 studentList 中的学生进行迭代。
解决方案
推荐阅读
- javascript - axios 请求并行
- netlogo - 内存:在表中存储多个补丁的补丁变量
- spring - Spring / Reactor:检索和修改 Mono
- python - 如何使用 Cassandra API 将 Python 的 cosmos_client 连接到 Cosmos DB 实例?
- c++ - 如何在 CLion 中将外部 C++ 库与 Bazel 一起使用?
- c# - Google 跟踪代码管理器仅适用于特定版本的 IE11
- python - 通过 ssh 实时执行的流式 python 命令
- javascript - 在我的 Angular 项目中使用 @types/cleave.js 时如何忽略 TS1192?
- xamarin.forms - 为什么绝对导航 URL 不清除导航堆栈?
- dynamics-365 - 步骤更改后工作流参考缺少步骤