修改ntripprox启动的bug

This commit is contained in:
weidong 2024-09-15 15:01:35 +08:00
parent f64a25a298
commit cf95be7a9a
3 changed files with 6 additions and 8 deletions

View File

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

View File

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

View File

@ -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.server.port = 11003
ntrip.proxy.port = 11001
ntrip.server.host = 47.107.50.52
ntrip.server.port = 11003
rtcm.server.host = 127.0.0.1
rtcm.server.port = 9903