Commit 3c3d6982 by 陈文顺

responseBody

parent 6bfd6369
...@@ -25,6 +25,7 @@ public class JobRunnerImpl implements JobRunner { ...@@ -25,6 +25,7 @@ public class JobRunnerImpl implements JobRunner {
@Override @Override
public Result run(JobContext jobContext) throws Throwable { public Result run(JobContext jobContext) throws Throwable {
String responseBody = "";
try { try {
BizLogger bizLogger = jobContext.getBizLogger(); BizLogger bizLogger = jobContext.getBizLogger();
...@@ -36,7 +37,7 @@ public class JobRunnerImpl implements JobRunner { ...@@ -36,7 +37,7 @@ public class JobRunnerImpl implements JobRunner {
return new Result(Action.EXECUTE_SUCCESS, "执行成功了,哈哈"); return new Result(Action.EXECUTE_SUCCESS, "执行成功了,哈哈");
} }
String responseBody = restTemplate.getForObject(url,String.class); responseBody = restTemplate.getForObject(url,String.class);
LOGGER.info("=========== responseBody:{}",responseBody); LOGGER.info("=========== responseBody:{}",responseBody);
...@@ -49,6 +50,6 @@ public class JobRunnerImpl implements JobRunner { ...@@ -49,6 +50,6 @@ public class JobRunnerImpl implements JobRunner {
LOGGER.info("Run job failed!", e); LOGGER.info("Run job failed!", e);
return new Result(Action.EXECUTE_FAILED, e.getMessage()); 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