|
@@ -4,6 +4,7 @@ package com.platform.rest.config.init;
|
|
|
import com.platform.common.constant.UpmsRedisKeyConstants;
|
|
|
import com.platform.common.util.BeanUtils;
|
|
|
import com.platform.common.util.RedisUtils;
|
|
|
+import com.platform.service.upms.ScheduleJobService;
|
|
|
import com.platform.service.upms.SysOauthClientDetailsService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.context.annotation.DependsOn;
|
|
@@ -26,6 +27,8 @@ public class ServletInit {
|
|
|
|
|
|
private final SysOauthClientDetailsService sysOauthClientDetailsService;
|
|
|
|
|
|
+ private final ScheduleJobService scheduleJobService;
|
|
|
+
|
|
|
/**
|
|
|
* 初始化客户端缓存
|
|
|
*/
|
|
@@ -41,4 +44,13 @@ public class ServletInit {
|
|
|
sysOauthClientDetailsService.initCache();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初始化job
|
|
|
+ */
|
|
|
+ @PostConstruct
|
|
|
+ public void initJob() {
|
|
|
+ scheduleJobService.init();
|
|
|
+ }
|
|
|
+
|
|
|
}
|