optimize: scheduler executors initialization

This commit is contained in:
hongqiaowei
2021-01-11 19:39:57 +08:00
parent de6c8bff8e
commit d0e3a8e8c7
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ import java.util.concurrent.atomic.AtomicLong;
// @ConditionalOnProperty(name="flowControl",havingValue = "true") // @ConditionalOnProperty(name="flowControl",havingValue = "true")
@DependsOn(FlowControlFilter.FLOW_CONTROL_FILTER) @DependsOn(FlowControlFilter.FLOW_CONTROL_FILTER)
@EnableScheduling @EnableScheduling
//// @ConfigurationProperties(prefix = "flow-stat-sched") // @ConfigurationProperties(prefix = "flow-stat-sched")
public class FlowStatSchedConfig extends SchedConfig { public class FlowStatSchedConfig extends SchedConfig {
private static final Logger log = LoggerFactory.getLogger(FlowStatSchedConfig.class); private static final Logger log = LoggerFactory.getLogger(FlowStatSchedConfig.class);

View File

@@ -32,7 +32,7 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
* @author hongqiaowei * @author hongqiaowei
*/ */
@ConfigurationProperties(prefix = "flow-stat-sched") @ConfigurationProperties(prefix = "sched")
public abstract class SchedConfig implements SchedulingConfigurer { public abstract class SchedConfig implements SchedulingConfigurer {
private int executors = 1; private int executors = 1;