Browse Source

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
90032ae83a
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/DipperPositionApplication.java
  2. +1
    -0
      src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java

+ 1
- 1
src/main/java/com/telpo/dipperposition/DipperPositionApplication.java View File

@@ -45,7 +45,7 @@ public class DipperPositionApplication {
//启动服务端 //启动服务端
ConfigurableEnvironment environment = applicationContext.getEnvironment(); ConfigurableEnvironment environment = applicationContext.getEnvironment();
DipperPositionServer nettyServer = new DipperPositionServer(environment); DipperPositionServer nettyServer = new DipperPositionServer(environment);
nettyServer.start2();
nettyServer.start();
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage()); log.error(e.getMessage());
} }


+ 1
- 0
src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java View File

@@ -64,6 +64,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
//通知客户端链接建立成功 //通知客户端链接建立成功
// 默认返回取得时间成功 // 默认返回取得时间成功
String ackAckCheckRef = "233E0101020004020A1D"; String ackAckCheckRef = "233E0101020004020A1D";

// if (Integer.parseInt(nettyServerConfig.getPosAsycServerPort()) == channel.localAddress().getPort()) { // if (Integer.parseInt(nettyServerConfig.getPosAsycServerPort()) == channel.localAddress().getPort()) {
// ackAckCheckRef = "233E010102000401091C"; // ackAckCheckRef = "233E010102000401091C";
// } // }


Loading…
Cancel
Save