feiyu02
2021-12-02 74ffc8ebf3a25d2e3cee758954ce6efc163cb864
src/main/kotlin/com/flightfeather/uav/UAVApplication.kt
@@ -18,12 +18,10 @@
    @Autowired
    lateinit var electricProcessor: ElectricProcessor
    private val socketServer = UnderwaySocketServer()
    @Bean
    fun runner() = ApplicationRunner{
        socketServer.startUnderwayServer(9030, underwayProcessor)
        socketServer.startElectricServer(9009, electricProcessor)
        UnderwaySocketServer().startUnderwayServer(9030, underwayProcessor)
        UnderwaySocketServer().startElectricServer(9009, electricProcessor)
    }
}