|
@@ -13,17 +13,17 @@
|
|
|
* See the License for the specific language governing permissions and
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
* limitations under the License.
|
|
|
*/
|
|
*/
|
|
|
-package me.zhengjie.modules.quartz.utils;
|
|
|
|
|
|
|
+package me.zhengjie.quartz.utils;
|
|
|
|
|
|
|
|
import cn.hutool.extra.template.Template;
|
|
import cn.hutool.extra.template.Template;
|
|
|
import cn.hutool.extra.template.TemplateConfig;
|
|
import cn.hutool.extra.template.TemplateConfig;
|
|
|
import cn.hutool.extra.template.TemplateEngine;
|
|
import cn.hutool.extra.template.TemplateEngine;
|
|
|
import cn.hutool.extra.template.TemplateUtil;
|
|
import cn.hutool.extra.template.TemplateUtil;
|
|
|
import me.zhengjie.domain.vo.EmailVo;
|
|
import me.zhengjie.domain.vo.EmailVo;
|
|
|
-import me.zhengjie.modules.quartz.domain.QuartzJob;
|
|
|
|
|
-import me.zhengjie.modules.quartz.domain.QuartzLog;
|
|
|
|
|
-import me.zhengjie.modules.quartz.repository.QuartzLogRepository;
|
|
|
|
|
-import me.zhengjie.modules.quartz.service.QuartzJobService;
|
|
|
|
|
|
|
+import me.zhengjie.quartz.domain.QuartzJob;
|
|
|
|
|
+import me.zhengjie.quartz.domain.QuartzLog;
|
|
|
|
|
+import me.zhengjie.quartz.repository.QuartzLogRepository;
|
|
|
|
|
+import me.zhengjie.quartz.service.QuartzJobService;
|
|
|
import me.zhengjie.service.EmailService;
|
|
import me.zhengjie.service.EmailService;
|
|
|
import me.zhengjie.utils.RedisUtils;
|
|
import me.zhengjie.utils.RedisUtils;
|
|
|
import me.zhengjie.utils.SpringContextHolder;
|
|
import me.zhengjie.utils.SpringContextHolder;
|
|
@@ -34,8 +34,14 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.quartz.QuartzJobBean;
|
|
import org.springframework.scheduling.quartz.QuartzJobBean;
|
|
|
-import java.util.*;
|
|
|
|
|
-import java.util.concurrent.*;
|
|
|
|
|
|
|
+
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+import java.util.concurrent.ExecutorService;
|
|
|
|
|
+import java.util.concurrent.Executors;
|
|
|
|
|
+import java.util.concurrent.Future;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 参考人人开源,https://gitee.com/renrenio/renren-security
|
|
* 参考人人开源,https://gitee.com/renrenio/renren-security
|