接口 StepExecutionListener

    • 方法详细资料

      • afterStep

        @Nullable
        ExitStatus afterStep​(StepExecution stepExecution)
        Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status using ExitStatus.and(ExitStatus). Called after execution of step's processing logic (both successful or failed). Throwing exception in this method has no effect, it will only be logged.
        参数:
        stepExecution - StepExecution instance.
        返回:
        an ExitStatus to combine with the normal value. Return null to leave the old value unchanged.