Parcourir la source

修改到docker外运行环境

tags/v1.0.0^2
林万龙 il y a 3 ans
Parent
révision
4d006ec8b5
2 fichiers modifiés avec 7 ajouts et 1 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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;


Chargement…
Annuler
Enregistrer