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