|
发表于 2018-6-7 15:18:15
|
显示全部楼层
今天更新到最新版3.7.6
public class DataBaseCronTriggerBean extends CronTriggerBean{
private static final long serialVersionUID = 1L;
@Autowired
private TimeTaskServiceI timeTaskService;
/**
* 读取数据库更新文件
*/
public void afterPropertiesSet() {
super.afterPropertiesSet();
TSTimeTaskEntity task = timeTaskService.findUniqueByProperty
(TSTimeTaskEntity.class,"taskId",this.getName());
if(task!=null&&task.getIsEffect().equals("1")
&&!task.getCronExpression().equals(this.getCronExpression())){
try {
this.setCronExpression(task.getCronExpression());
} catch (ParseException e) {
// TODO 异常必须被处理
e.printStackTrace();
}
//DynamicTask.updateSpringMvcTaskXML(this,task.getCronExpression());
}
}
this.getName();
this.setCronExpression
|
-
红线处报错
|