elasticJob 自定义任务参数


页面上配置

代码中获取

        // 自定义参数 当前时间
        if (null != shardingContext) {
            String jobParam = shardingContext.getJobParameter();
            if (StringUtils.isNotEmpty(jobParam)) {
               Date now = DateUtil.formatDate(jobParam);
            }
        }