{"doc":" XxlJob开发示例(Bean模式)\n

\n 开发步骤:\n 1、任务开发:在Spring Bean实例中,开发Job方法;\n 2、注解配置:为Job方法添加注解 \"@XxlJob(value=\"自定义jobhandler名称\", init = \"JobHandler初始化方法\", destroy = \"JobHandler销毁方法\")\",注解value值对应的是调度中心新建任务的JobHandler属性的值。\n 3、执行日志:需要通过 \"XxlJobHelper.log\" 打印执行日志;\n 4、任务结果:默认任务结果为 \"成功\" 状态,不需要主动设置;如有诉求,比如设置任务结果为失败,可以通过 \"XxlJobHelper.handleFail/handleSuccess\" 自主设置任务结果;\n\n @author xuxueli 2019-12-11 21:52:51\n","fields":[],"enumConstants":[],"methods":[{"name":"demoJobHandler","paramTypes":[],"doc":" 1、简单任务示例(Bean模式)\n"},{"name":"shardingJobHandler","paramTypes":[],"doc":" 2、分片广播任务\n"},{"name":"commandJobHandler","paramTypes":[],"doc":" 3、命令行任务\n"},{"name":"httpJobHandler","paramTypes":[],"doc":" 4、跨平台Http任务\n 参数示例:\n \"url: http://www.baidu.com\\n\" +\n \"method: get\\n\" +\n \"data: content\\n\";\n"},{"name":"demoJobHandler2","paramTypes":[],"doc":" 5、生命周期任务示例:任务初始化与销毁时,支持自定义相关逻辑;\n"}],"constructors":[]}