首页>代码>Spring Batch入门教程及其框架搭建>/SpringBatchHelloWorld/src/main/java/com/wanggc/springbatch/sample/helloworld/writeTasklet.java
package com.wanggc.springbatch.sample.helloworld; import org.springframework.batch.core.StepContribution; import org.springframework.batch.core.scope.context.ChunkContext; import org.springframework.batch.core.step.tasklet.Tasklet; import org.springframework.batch.repeat.RepeatStatus; public class writeTasklet implements Tasklet { /** Message */ private String message; /** * @param message * the message to set */ public void setMessage(String message) { this.message = message; } //@Override public RepeatStatus execute(StepContribution arg0, ChunkContext arg1) throws Exception { System.out.println(message); return RepeatStatus.FINISHED; } }
最近下载更多
changup LV6
2022年2月2日
雾岛听风 LV7
2021年10月20日
lovejing LV7
2020年5月16日
laowantong260 LV7
2020年1月18日
Zhangjifeng LV3
2019年6月21日
aaaaaSAAAA LV1
2019年4月8日
gxh2017 LV6
2019年3月28日
412059770 LV2
2019年1月18日
bdkwxz LV10
2019年1月14日
机智的我 LV17
2019年1月2日