ソースを参照

更新Demo代码

xueli.xue 9 年 前
コミット
7b9d505f66
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3 3
      xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl

+ 3 - 3
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl ファイルの表示

@@ -162,14 +162,14 @@ package com.xxl.job.service.handler;
162 162
 import org.slf4j.Logger;
163 163
 import org.slf4j.LoggerFactory;
164 164
 
165
-import com.xxl.job.client.handler.IJobHandler;
166
-import com.xxl.job.client.handler.IJobHandler.JobHandleStatus;
165
+import com.xxl.job.core.handler.IJobHandler;
166
+import com.xxl.job.core.handler.IJobHandler.JobHandleStatus;
167 167
 
168 168
 public class DemoJobHandler extends IJobHandler {
169 169
 	private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
170 170
 	
171 171
 	@Override
172
-	public JobHandleStatus handle(String... params) throws Exception {
172
+	public JobHandleStatus execute(String... params) throws Exception {
173 173
 		logger.info("XXL-JOB, Hello World.");
174 174
 		return JobHandleStatus.SUCCESS;
175 175
 	}