Cannot convert value of type 'org.springframework.batch.item.xml.StaxEventItemWriter' to required type 'org.springframework.batch.item.ItemReader'

一曲冷凌霜 提交于 2019-12-07 01:18:27

Need to use the following done. Had give writer for reader and reader for writer.

<batch:job id="reportJob">
        <batch:step id="step1">
            <batch:tasklet>
                <!-- <batch:chunk reader="xmlItemWriter" writer="mongodbItemReader" commit-interval="1"> -->
                <batch:chunk reader="mongodbItemReader" writer="xmlItemWriter" commit-interval="1">
                </batch:chunk>
            </batch:tasklet>
        </batch:step>
    </batch:job>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!