修改ntripprox启动的bug
This commit is contained in:
parent
f64a25a298
commit
cf95be7a9a
@ -12,7 +12,7 @@ import org.springframework.context.annotation.ComponentScan;
|
|||||||
* @author Layton
|
* @author Layton
|
||||||
* @date 2023/1/31 20:33
|
* @date 2023/1/31 20:33
|
||||||
*/
|
*/
|
||||||
@ComponentScan({"com.imdroid.common.*"})
|
@ComponentScan({"com.imdroid.common.*","com.imdroid.ntripproxy.*"})
|
||||||
@SpringBootApplication(exclude = {
|
@SpringBootApplication(exclude = {
|
||||||
DataSourceAutoConfiguration.class,
|
DataSourceAutoConfiguration.class,
|
||||||
DataSourceTransactionManagerAutoConfiguration.class,
|
DataSourceTransactionManagerAutoConfiguration.class,
|
||||||
|
|||||||
@ -29,16 +29,11 @@ public class UdpServer implements ApplicationRunner {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private UdpHandler udpHandler;
|
private UdpHandler udpHandler;
|
||||||
|
|
||||||
public UdpServer() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(ApplicationArguments args) throws Exception {
|
public void run(ApplicationArguments args) throws Exception {
|
||||||
new Thread(this::start0, "ntrip-proxy").start();
|
new Thread(this::start0, "ntrip-proxy").start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void start0() {
|
private void start0() {
|
||||||
EventLoopGroup group = new NioEventLoopGroup();
|
EventLoopGroup group = new NioEventLoopGroup();
|
||||||
Bootstrap bootstrap = new Bootstrap();
|
Bootstrap bootstrap = new Bootstrap();
|
||||||
|
|||||||
@ -11,6 +11,9 @@ app.format.date = yyyy-MM-dd
|
|||||||
app.format.time = HH:mm:ss
|
app.format.time = HH:mm:ss
|
||||||
app.format.datetime = yyyy-MM-dd 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.server.port = 11003
|
||||||
ntrip.proxy.port = 11001
|
|
||||||
|
rtcm.server.host = 127.0.0.1
|
||||||
|
rtcm.server.port = 9903
|
||||||
Loading…
x
Reference in New Issue
Block a user