From b212ef0208cb094f63ea8a239a1361f8e859c839 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 08 七月 2024 17:40:39 +0800 Subject: [PATCH] 2024.7.8 --- src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt b/src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt index 9099122..e21e4dd 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt @@ -1,15 +1,16 @@ package cn.flightfeather.supervision -import cn.flightfeather.supervision.datafetch.FetchController -import cn.flightfeather.supervision.infrastructure.service.ServerManager +import cn.flightfeather.supervision.business.datafetch.FetchController import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.ApplicationRunner import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication import org.springframework.context.annotation.Bean +import org.springframework.scheduling.annotation.EnableScheduling @SpringBootApplication +@EnableScheduling class SupervisionApplication { @Autowired @@ -18,7 +19,7 @@ @Bean fun runner() = ApplicationRunner { - fetchController. run() + fetchController.run() } } -- Gitblit v1.9.3