chudk 7 년 전
부모
커밋
096f8b660e
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      src/main/java/com/tidecloud/dataacceptance/service/impl/WatchServerHandler.java
  2. 2 2
      src/main/resources/application.yml

+ 1 - 0
src/main/java/com/tidecloud/dataacceptance/service/impl/WatchServerHandler.java

@@ -60,6 +60,7 @@ public class WatchServerHandler extends ChannelInboundHandlerAdapter {
     public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
         ByteBuf byteBuf = (ByteBuf)msg;
         String str = byteBufferToString(byteBuf.nioBuffer());
+        logger.info("上传数据:", str);
         try {
             reply(ctx, str);
         } catch (Exception e) {

+ 2 - 2
src/main/resources/application.yml

@@ -10,8 +10,8 @@ spring:
     maxWaitMills: 10000
 server:
   netty:
-    port: 7009
-  port: 14001
+    port: 7510
+  port: 16666
   localaddress: 10.27.118.76
 logging:
   config: