feiyu02
2022-11-15 23bd719cebe5feeff4e48fde925b0b39755eea93
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()
    }
}