Commit a764e942 by huangfusuper

调整bean 依赖的对象

parent 0fbf5567
......@@ -8,6 +8,7 @@ import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
import java.util.Map;
......@@ -20,6 +21,7 @@ import java.util.Map;
**/
@Component
@Slf4j
@DependsOn("distributedLocker")
public class MythJobScheduler implements InitializingBean, DisposableBean {
private final ApplicationContext applicationContext;
......
......@@ -55,7 +55,7 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
//自旋等待redis加载成功
while (RedissLockUtil.redissLock == null){
log.warn("{} 正在加载redis资源...",threadName);
dateAligned(CYCLE_INTERVAL,threadName);
dateAligned(3000L,threadName);
}
log.debug("---{}等待redis资源成功---",threadName);
//加锁 60秒后超时
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment