mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 00:15:24 +00:00
perf[scheduler]: 让cron表达式在其它模块启动完成过后再执行,减少重复的遍历提升了一点性能
This commit is contained in:
1 parent
d72fcbd5de
commit
af463c656c
6 files changed
+81
-124
No files matched your search
@@ -13,7 +13,6 @@
|
||||
package com.zfoo.boot;
|
||||
|
||||
import com.zfoo.scheduler.SchedulerContext;
|
||||
import com.zfoo.scheduler.schema.SchedulerRegisterProcessor;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -25,12 +24,6 @@ import org.springframework.context.annotation.Configuration;
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class SchedulerAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public SchedulerRegisterProcessor schedulerRegisterProcessor() {
|
||||
return new SchedulerRegisterProcessor();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public SchedulerContext schedulerContext() {
|
||||
|
||||
Reference in new issue
Block a user