diff --git a/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java b/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java index 3d46275..a0358ec 100644 --- a/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java +++ b/src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java @@ -108,12 +108,12 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter { String ipAddress = channel.remoteAddress().toString(); //String message = " 接收到消息:{0}, 客户端IP:{1}"; log.info("接收到消息:" + msg + ",客户端IP:" + ipAddress); - if (nettyServerHandler.positionConfig != null) { - log.info("config info is : " + nettyServerHandler.positionConfig.getCenterProvinceFilePath() + nettyServerHandler.positionConfig.getCenterProvince() + nettyServerHandler.positionConfig.getIpPositionRequestPath() + - nettyServerHandler.positionConfig.getIpPositionRequestKey()); - } else { - log.info("positionConfig info is null!!!!!!!!!!!!!! "); - } +// if (nettyServerHandler.positionConfig != null) { +// log.info("config info is : " + nettyServerHandler.positionConfig.getCenterProvinceFilePath() + nettyServerHandler.positionConfig.getCenterProvince() + nettyServerHandler.positionConfig.getIpPositionRequestPath() + +// nettyServerHandler.positionConfig.getIpPositionRequestKey()); +// } else { +// log.info("positionConfig info is null!!!!!!!!!!!!!! "); +// } String channelAns = ""; // 返回时间指令 @@ -125,7 +125,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter { if (AST_TIME_CMD.equals(msg)) { // 初始时间辅助输入; channelAns = nettyServerHandler.dipperTimeAsyncTaskService.pushAstTime(); - log.info("返回时间:" + channelAns); +// log.info("返回时间:" + channelAns); } // 发送SDBP-AST-POS获取辅助位置信息 // if (Integer.parseInt(posAsycServerPort) == channel.localAddress().getPort()) { diff --git a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java index fe3f30e..6af9ce3 100644 --- a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java +++ b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java @@ -54,7 +54,7 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS String centerProvinceLonAndAlt = ""; String appCsvPath = ""; try { - appCsvPath = ResourceUtils.getFile("resources"+this.centerProvinceFilePath).getPath(); + appCsvPath = ResourceUtils.getFile("resources"+this.centerProvinceFilePath).getAbsolutePath(); log.debug(appCsvPath); } catch (Exception e) { log.debug("cannot find path");