看起来您只是不能更改BatchStatus,但是可以使用exitstatus尝试
此代码与JobListener对我有用
// JobListener with interface or annotationpublic void afterJob(JobExecution jobExecution) { jobExecution.setExitStatus(new ExitStatus("foo", "fooBar"));}
看起来您只是不能更改BatchStatus,但是可以使用exitstatus尝试
此代码与JobListener对我有用
// JobListener with interface or annotationpublic void afterJob(JobExecution jobExecution) { jobExecution.setExitStatus(new ExitStatus("foo", "fooBar"));}