首页>代码>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日
最近浏览更多
莫名奇妙的帅  LV4 2023年3月9日
二手玫瑰  LV15 2022年11月18日
是你爸爸啊100  LV5 2022年7月30日
1529860026  LV24 2022年7月14日
whfuai  LV14 2022年5月9日
changup  LV6 2022年2月2日
Mere 2021年11月30日
暂无贡献等级
Mr.C 2021年11月2日
暂无贡献等级
雾岛听风  LV7 2021年10月20日
想什么名字的好麻烦  LV1 2021年7月24日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友