|
@@ -3,6 +3,7 @@ package com.hb.proj.gather.server;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.ApplicationArguments;
|
|
|
import org.springframework.boot.ApplicationRunner;
|
|
|
import org.springframework.core.annotation.Order;
|
|
@@ -16,6 +17,9 @@ public class NettyGatherRunner implements ApplicationRunner {
|
|
|
|
|
|
private final static Logger logger = LoggerFactory.getLogger(NettyGatherRunner.class);
|
|
|
|
|
|
+ @Value("${gather.port}")
|
|
|
+ private int gatherPort;
|
|
|
+
|
|
|
@Autowired
|
|
|
private NettyGatherServer nettyGatherServer;
|
|
|
|
|
@@ -26,7 +30,7 @@ public class NettyGatherRunner implements ApplicationRunner {
|
|
|
|
|
|
//(new DataAssembler()).start();
|
|
|
DataTransConfig.init();
|
|
|
- nettyGatherServer.start(9603);
|
|
|
+ nettyGatherServer.start(gatherPort);
|
|
|
|
|
|
}).start();
|
|
|
|