注释类型 BeforeJob
@Retention(RUNTIME) @Target(METHOD) @Qualifier("JobExecutionListener") public @interface BeforeJob
Marks a method to be called before aJob
is executed, which comes after aJobExecution
is created and persisted, but before the firstStep
is executed.
Expected signature: void beforeJob(JobExecution
jobExecution)- 从以下版本开始:
- 2.0
- 作者:
- Lucas Ward
- 另请参阅:
JobExecutionListener