SpringBatch
cg_Amaz1ng
这个作者很懒,什么都没留下…
展开
-
org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in ‘strict’ mode): 把ClassPathResource换成PathResource原创 2018-09-11 11:21:34 · 5419 阅读 · 1 评论 -
MyBatisPagingItemReader只能读取第一页
问题描述:使用MyBatisPagingItemReader作为SpringBatch的Reader,发现只能读取数据库查询结果第一页的数据。解决过程:当前的SQL:select * from user where mod(userId,2)=0查看MyBatisPagingItemReader的源码,其中有一个方法引起了我的注意。protected void doReadPage(...原创 2018-09-19 11:30:44 · 2962 阅读 · 0 评论