diff --git a/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java b/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java index dc7aae0..8d3349e 100644 --- a/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java +++ b/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java @@ -12,6 +12,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.scheduling.annotation.EnableAsync; +import org.springframework.scheduling.annotation.EnableScheduling; import java.util.Properties; import java.util.concurrent.Executor; @@ -23,10 +25,11 @@ import java.util.concurrent.Executor; * @create: 2020-06-18 16:39 */ @SpringBootApplication -@EnableConfigurationProperties @EnableDiscoveryClient -@Slf4j @ConfigurationPropertiesScan +@EnableAsync +@EnableScheduling +@Slf4j public class DipperPositionApplication { public static void main(String[] args) {