首页 > 解决方案 > 如何从使用 MongoItemReader (Springbatch) 读取的对象中迭代列表

问题描述

如何使用 MongoItemReader 读取对象中的列表,然后从我刚刚读取的对象(父对象)中迭代列表子对象。

前任 :

<classRoom>
<studentList>
    <student>
    ..
    </student>
    <student>
    ..
    </student>      
</studentList>

我是否通过 mongoItemreader 检索 classRoom .. 但我希望读者在调用 ItemProcessor 之前按 studentList 中的学生进行迭代。

标签: mongodbspring-batch

解决方案


推荐阅读