optimize: scheduler executors initialization
This commit is contained in:
@@ -53,7 +53,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
// @ConditionalOnProperty(name="flowControl",havingValue = "true")
|
||||
@DependsOn(FlowControlFilter.FLOW_CONTROL_FILTER)
|
||||
@EnableScheduling
|
||||
//// @ConfigurationProperties(prefix = "flow-stat-sched")
|
||||
// @ConfigurationProperties(prefix = "flow-stat-sched")
|
||||
public class FlowStatSchedConfig extends SchedConfig {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(FlowStatSchedConfig.class);
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
|
||||
* @author hongqiaowei
|
||||
*/
|
||||
|
||||
@ConfigurationProperties(prefix = "flow-stat-sched")
|
||||
@ConfigurationProperties(prefix = "sched")
|
||||
public abstract class SchedConfig implements SchedulingConfigurer {
|
||||
|
||||
private int executors = 1;
|
||||
|
||||
Reference in New Issue
Block a user