@Test
public void addCronJob() {

    String cron = "3 * * * * ? *";
    TaskInfo taskInfo = new TaskInfo();
    Map data = Maps.newHashMap();
    String serviceId = "upm-server";
    data.put("serviceId", serviceId);
    data.put("method", "get");
    data.put("path", "/test");
    data.put("contentType", "application/x-www-form-urlencoded");
    data.put("alarmMail", "515608851@qq.com");
    taskInfo.setData(data);
    taskInfo.setJobName("定时任务测试");
    taskInfo.setJobDescription("定时任务描述3秒执行一次");
    taskInfo.setJobClassName(HttpExecuteJob.class.getName());
    taskInfo.setJobGroupName(Scheduler.DEFAULT_GROUP);
    taskInfo.setCronExpression(cron);
    schedulerService.addCronJob(taskInfo);
}