2020-05-07 21:55:45 +08:00
|
|
|
package com.genersoft.iot.vmp;
|
|
|
|
|
|
|
|
import java.util.logging.LogManager;
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2021-03-14 21:25:52 +08:00
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
2021-07-14 15:57:39 +08:00
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
2021-04-07 18:35:13 +08:00
|
|
|
import springfox.documentation.oas.annotations.EnableOpenApi;
|
2020-05-07 21:55:45 +08:00
|
|
|
|
2021-08-04 18:00:22 +08:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2020-05-07 21:55:45 +08:00
|
|
|
@SpringBootApplication
|
2021-07-14 15:57:39 +08:00
|
|
|
@EnableScheduling
|
2021-04-07 18:35:13 +08:00
|
|
|
@EnableOpenApi
|
2020-05-07 21:55:45 +08:00
|
|
|
public class VManageBootstrap extends LogManager {
|
2021-03-14 21:25:52 +08:00
|
|
|
private static String[] args;
|
|
|
|
private static ConfigurableApplicationContext context;
|
2020-05-07 21:55:45 +08:00
|
|
|
public static void main(String[] args) {
|
2021-03-14 21:25:52 +08:00
|
|
|
VManageBootstrap.args = args;
|
|
|
|
VManageBootstrap.context = SpringApplication.run(VManageBootstrap.class, args);
|
|
|
|
}
|
|
|
|
// 项目重启
|
|
|
|
public static void restart() {
|
|
|
|
context.close();
|
|
|
|
VManageBootstrap.context = SpringApplication.run(VManageBootstrap.class, args);
|
2020-05-07 21:55:45 +08:00
|
|
|
}
|
2021-08-04 18:00:22 +08:00
|
|
|
|
2021-06-07 15:11:53 +08:00
|
|
|
|
2020-05-07 21:55:45 +08:00
|
|
|
}
|