Commit 3c3d6982 by 陈文顺

responseBody

parent 6bfd6369
......@@ -25,6 +25,7 @@ public class JobRunnerImpl implements JobRunner {
@Override
public Result run(JobContext jobContext) throws Throwable {
String responseBody = "";
try {
BizLogger bizLogger = jobContext.getBizLogger();
......@@ -36,7 +37,7 @@ public class JobRunnerImpl implements JobRunner {
return new Result(Action.EXECUTE_SUCCESS, "执行成功了,哈哈");
}
String responseBody = restTemplate.getForObject(url,String.class);
responseBody = restTemplate.getForObject(url,String.class);
LOGGER.info("=========== responseBody:{}",responseBody);
......@@ -49,6 +50,6 @@ public class JobRunnerImpl implements JobRunner {
LOGGER.info("Run job failed!", e);
return new Result(Action.EXECUTE_FAILED, e.getMessage());
}
return new Result(Action.EXECUTE_SUCCESS, "执行成功了,哈哈");
return new Result(Action.EXECUTE_SUCCESS, responseBody);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment