Forráskód Böngészése

日志文件切分

lizw 3 éve
szülő
commit
004c408e0d

+ 3 - 2
soap-gateway/src/main/java/com/galaxis/soap/StartSoap.java

@@ -17,10 +17,11 @@ public class StartSoap {
 
     @SneakyThrows
     public static void main(String[] args) {
-        String wsUrl = "http://0.0.0.0:9999/wms/api";
-        Endpoint.publish(wsUrl, new WMSServiceImpl());
         ApplicationContext ctx = SpringApplication.run(StartSoap.class, args);
         log.info("### Prod服务启动完成 === " + ctx);
+
+        String wsUrl = "http://0.0.0.0:9999/wms/api";
+        Endpoint.publish(wsUrl, new WMSServiceImpl());
         Runtime.getRuntime().addShutdownHook(new Thread(() -> running.set(false)));
         while (running.get()) {
             // noinspection BusyWait