diff --git a/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/NtripProxyApp.java b/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/NtripProxyApp.java index e3651e4c..96724276 100644 --- a/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/NtripProxyApp.java +++ b/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/NtripProxyApp.java @@ -12,7 +12,7 @@ import org.springframework.context.annotation.ComponentScan; * @author Layton * @date 2023/1/31 20:33 */ -@ComponentScan({"com.imdroid.common.*"}) +@ComponentScan({"com.imdroid.common.*","com.imdroid.ntripproxy.*"}) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class, diff --git a/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/service/UdpServer.java b/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/service/UdpServer.java index 2f08fdba..5a62e4c9 100644 --- a/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/service/UdpServer.java +++ b/sec-ntrip-proxy/src/main/java/com/imdroid/ntripproxy/service/UdpServer.java @@ -29,16 +29,11 @@ public class UdpServer implements ApplicationRunner { @Autowired private UdpHandler udpHandler; - public UdpServer() { - - } - @Override public void run(ApplicationArguments args) throws Exception { new Thread(this::start0, "ntrip-proxy").start(); } - private void start0() { EventLoopGroup group = new NioEventLoopGroup(); Bootstrap bootstrap = new Bootstrap(); diff --git a/sec-ntrip-proxy/src/main/resources/application.properties b/sec-ntrip-proxy/src/main/resources/application.properties index d8b970d1..2feab08e 100644 --- a/sec-ntrip-proxy/src/main/resources/application.properties +++ b/sec-ntrip-proxy/src/main/resources/application.properties @@ -11,6 +11,9 @@ app.format.date = yyyy-MM-dd app.format.time = HH:mm:ss app.format.datetime = yyyy-MM-dd HH:mm:ss -ntrip.server.host = 127.0.0.1 +ntrip.proxy.port = 11001 +ntrip.server.host = 47.107.50.52 ntrip.server.port = 11003 -ntrip.proxy.port = 11001 \ No newline at end of file + +rtcm.server.host = 127.0.0.1 +rtcm.server.port = 9903 \ No newline at end of file