From 7bae299508b1975b73a0e1aecdfd3a21615c62d2 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Mon, 18 Jan 2021 14:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Enacos=E5=8C=97=E6=96=97=E8=BE=85?= =?UTF-8?q?=E5=8A=A9=E5=AE=9A=E4=BD=8D=E9=A1=B9=E7=9B=AE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring_data_mongodb_2_2_5_RELEASE_sources1.xml | 11 +++++++++++ .../com/telpo/beidouast/BaidouAstApplication.java | 8 +------- .../telpo/beidouast/server/DipperPositionServer.java | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .idea/libraries/spring_data_mongodb_2_2_5_RELEASE_sources1.xml diff --git a/.idea/libraries/spring_data_mongodb_2_2_5_RELEASE_sources1.xml b/.idea/libraries/spring_data_mongodb_2_2_5_RELEASE_sources1.xml new file mode 100644 index 0000000..2027269 --- /dev/null +++ b/.idea/libraries/spring_data_mongodb_2_2_5_RELEASE_sources1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/telpo/beidouast/BaidouAstApplication.java b/src/main/java/com/telpo/beidouast/BaidouAstApplication.java index a229025..176316a 100644 --- a/src/main/java/com/telpo/beidouast/BaidouAstApplication.java +++ b/src/main/java/com/telpo/beidouast/BaidouAstApplication.java @@ -1,21 +1,15 @@ -package com.telpo.dipperposition; +package com.telpo.beidouast; -import com.telpo.beidouast.co.PositionConfigInfo; import com.telpo.beidouast.server.DipperPositionServer; -import com.telpo.beidouast.server.EphAsyncServer; -import com.telpo.beidouast.server.TimeAsyncServer; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; -import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; -import java.util.Properties; -import java.util.concurrent.Executor; /** * @program: gateway diff --git a/src/main/java/com/telpo/beidouast/server/DipperPositionServer.java b/src/main/java/com/telpo/beidouast/server/DipperPositionServer.java index caf12ee..e33868c 100644 --- a/src/main/java/com/telpo/beidouast/server/DipperPositionServer.java +++ b/src/main/java/com/telpo/beidouast/server/DipperPositionServer.java @@ -29,7 +29,7 @@ public class DipperPositionServer { private Integer posAsycPort; private Integer starsAsycPort; - public DipperPositionServer(ConfigurableEnvironment environment) throws NacosException { + public DipperPositionServer(ConfigurableEnvironment environment) { this.serverAddr = environment.getProperty("position-server.serverAddr"); this.serverPort = Integer.parseInt(environment.getProperty("server.port"));