diff --git a/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java b/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java index 8d3349e..02bb839 100644 --- a/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java +++ b/src/main/java/com/telpo/dipperposition/DipperPositionApplication.java @@ -38,14 +38,14 @@ public class DipperPositionApplication { log.info("北斗定位服务启动!"); try { test(); + //启动服务端 + DipperPositionServer nettyServer = new DipperPositionServer(); + nettyServer.startTimeAsnc(); + nettyServer.startPosAsnc(); + nettyServer.startStarsAsnc(); } catch (Exception e) { log.error(e.getMessage()); } - //启动服务端 - DipperPositionServer nettyServer = new DipperPositionServer(); - nettyServer.startTimeAsnc(); - nettyServer.startPosAsnc(); - nettyServer.startStarsAsnc(); } private static void test() throws NacosException {