| | |
| | | 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 |
| | |
| | | @Autowired |
| | | lateinit var taskController: TaskController |
| | | |
| | | @Autowired |
| | | lateinit var wxTokenManager: WxTokenManager |
| | | |
| | | @Bean |
| | | fun runner() = ApplicationRunner { |
| | | webSocketServer.start() |
| | | taskController.run() |
| | | wxTokenManager.run() |
| | | } |
| | | } |
| | | |