feiyu02
2022-10-21 f22c4b9230808fed4fec80c435eccb4c833349a0
src/main/kotlin/cn/flightfeather/supervision/SupervisionApplication.kt
@@ -1,5 +1,6 @@
package cn.flightfeather.supervision
import cn.flightfeather.supervision.common.wx.WxTokenManager
import cn.flightfeather.supervision.timingtask.TaskController
import cn.flightfeather.supervision.websocket.VMRoomWebSocketServer
import org.springframework.beans.factory.annotation.Autowired
@@ -18,10 +19,14 @@
    @Autowired
    lateinit var taskController: TaskController
    @Autowired
    lateinit var wxTokenManager: WxTokenManager
    @Bean
    fun runner() = ApplicationRunner {
        webSocketServer.start()
        taskController.run()
//        taskController.run()
        wxTokenManager.run()
    }
}