Explorar el Código

修改到docker外运行环境

tags/v1.0.0^2
林万龙 hace 3 años
padre
commit
4d006ec8b5
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. +3
    -0
      src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java
  2. +4
    -1
      src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java

+ 3
- 0
src/main/java/com/telpo/dipperposition/handler/NettyServerHandler.java Ver fichero

@@ -42,10 +42,13 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
private static String AST_POS_CMD_BYTE = "504f53";
private static String AST_EPH_CMD_BYTE = "455048";

@Autowired
private IDipperAstTimeAsyncTaskService dipperTimeAsyncTaskService;

@Autowired
private IDipperAstPosAsyncTaskService dipperAstPosAsyncTaskService;

@Autowired
private IDipperDataAsyncTaskService dipperDataAsyncTaskService;

@Autowired


+ 4
- 1
src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java Ver fichero

@@ -3,7 +3,9 @@ package com.telpo.dipperposition.server;
import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.PropertyKeyConst;
import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.telpo.dipperposition.co.PositionConfigInfo;
import com.telpo.dipperposition.handler.ServerChannelInitializer;
import io.netty.bootstrap.ServerBootstrap;
@@ -27,9 +29,10 @@ import java.net.InetSocketAddress;
*/
@Slf4j
@Component
@NacosPropertySource(dataId="dipperposition-service", autoRefreshed=true)
public class DipperPositionServer {

@Value("position-server.serverAddr")
@NacosValue("position-server.serverAddr")
private String myServerAddr;
private String serverAddr;
private Integer starsAsycPort;


Cargando…
Cancelar
Guardar