优化
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.baiyue.common.web;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/** Enables scheduled workers by default while allowing blue-green web slots to disable them. */
|
||||
@AutoConfiguration
|
||||
@EnableScheduling
|
||||
@ConditionalOnProperty(prefix = "baiyue.runtime", name = "scheduling-enabled",
|
||||
havingValue = "true", matchIfMissing = true)
|
||||
public class BaiyueSchedulingAutoConfiguration {
|
||||
}
|
||||
Reference in New Issue
Block a user