🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 一、详细的执行记录 执行过程中,发生了任何需要记录下的信息,包括异常情况,都可以通过`StringBuilder errorMessage`参数来追加,这个参数通过`protected void doInRayPeriodJob(SysJobExecution sysjobexecution, StringBuilder errorMessage)`注入进来; ### **举例** ``` @Override protected void doInRayPeriodJob(SysJobExecution sysjobexecution, StringBuilder errorMessage) { List<CardSource> cardSourceList = cardSourceDao.getCardSourceList(); for (CardSource cardSource : cardSourceList) { try { ApiFacade.refreshApiResource(cardSource); } catch (Exception e) { errorMessage.append(ExceptionUtil.getFullStackTraceAsString(e)); } } } ```