瀏覽代碼

增加OkHttp配置文件读取

tags/v1.0.0^2
林万龙 3 年之前
父節點
當前提交
4a28c2bbee
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java

+ 3
- 1
src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java 查看文件

@@ -32,12 +32,14 @@ public class DipperPositionServer {
*/
public void startTimeAsnc() {

log.debug("Server is :", positionConfig.getServerAddr());
log.debug("Port is :", positionConfig.getTimeAsycServerPort());
//new 一个主线程组
EventLoopGroup mainThreadGroup = new NioEventLoopGroup(1);
//new 一个工作线程组
EventLoopGroup workThreadGroup = new NioEventLoopGroup(200);
InetSocketAddress socketAddress = new InetSocketAddress(positionConfig.getServerAddr(),
Integer.parseInt(positionConfig.getTimeAsycServerPort()));
Integer.parseInt("9101"));
ServerBootstrap bootstrap = new ServerBootstrap()
.group(mainThreadGroup, workThreadGroup)
.channel(NioServerSocketChannel.class)


Loading…
取消
儲存