1 回答
TA贡献1886条经验 获得超2个赞
监听器配置不正确。
由此,
<batch:job id="personJob">
<batch:step id="step1bb1" >
<batch:tasklet transaction-manager="transactionManager">
<batch:chunk reader="itemReader" writer="itemWriter" commit-interval="10" />
</batch:tasklet>
</batch:step>
<batch:listeners>
<batch:listener ref="jobPersonListener" />
<batch:listener ref="personReadListener"/>
</batch:listeners>
</batch:job>
应该改为
<batch:job id="personJob">
<batch:step id="step1bb1" >
<batch:tasklet transaction-manager="transactionManager">
<batch:chunk reader="itemReader" writer="itemWriter" commit-interval="10" />
<batch:listeners>
<batch:listener ref="jobPersonListener" />
<batch:listener ref="personReadListener"/>
</batch:listeners>
</batch:tasklet>
</batch:step>
</batch:job>
添加回答
举报