|
|
@@ -55,7 +55,7 @@ public class VdsCommServerApplication implements CommandLineRunner, ApplicationL
|
|
|
log.error("Program Already Running.....");
|
|
|
}
|
|
|
|
|
|
- if (!OS.isWindows()) {
|
|
|
+ if (OS.isWindows()) {
|
|
|
ApplicationContext context = new SpringApplicationBuilder(VdsCommServerApplication.class)
|
|
|
//.web(WebApplicationType.NONE)
|
|
|
.listeners(new ApplicationPidFileWriter("./conf/" + applicationName + ".pid"))
|
|
|
@@ -113,7 +113,7 @@ public class VdsCommServerApplication implements CommandLineRunner, ApplicationL
|
|
|
// schedule enable
|
|
|
processConfig.setStartSchedule(true);
|
|
|
|
|
|
- if (!OS.isWindows()) {
|
|
|
+ if (OS.isWindows()) {
|
|
|
SwingUtilities.invokeLater(() -> {
|
|
|
String sysTime = SysUtils.getSysTimeStr();
|
|
|
//JFrame.setDefaultLookAndFeelDecorated(true);
|