|
|
@@ -15,6 +15,9 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
|
|
|
+/**
|
|
|
+ * @author Administrator
|
|
|
+ */
|
|
|
@ServletComponentScan("com.zd.alg.iot.vmp.conf")
|
|
|
@EnableCustomConfig
|
|
|
@EnableRyFeignClients
|
|
|
@@ -29,9 +32,11 @@ public class AlgorithmApplication {
|
|
|
AlgorithmApplication.context = ZdStartApplication.run(ApplicationConstants.ALGORITHM_SERVICE, AlgorithmApplication.class, args);
|
|
|
}
|
|
|
|
|
|
- // 项目重启
|
|
|
+ /**
|
|
|
+ * 项目重启
|
|
|
+ */
|
|
|
public static void restart() {
|
|
|
AlgorithmApplication.context.close();
|
|
|
- AlgorithmApplication.context = SpringApplication.run(AlgorithmApplication.class, args);
|
|
|
+ AlgorithmApplication.context = ZdStartApplication.run(ApplicationConstants.ALGORITHM_SERVICE, AlgorithmApplication.class, args);
|
|
|
}
|
|
|
}
|