|
|
@@ -15,7 +15,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
|
|
|
import org.springframework.context.annotation.ImportResource;
|
|
|
|
|
|
+import com.leanwo.management.config.AppConfig;
|
|
|
import com.leanwo.management.util.ProgramStopUtil;
|
|
|
+import com.leanwo.management.util.SpringUtil;
|
|
|
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@@ -49,7 +51,10 @@ public class ServerManagementApp {
|
|
|
}
|
|
|
|
|
|
final boolean isAutoRunFinal = isAutoRun;
|
|
|
-
|
|
|
+
|
|
|
+ AppConfig appConfig = (AppConfig) SpringUtil.getSingleBean(AppConfig.class);
|
|
|
+ String title = appConfig.getTitle();
|
|
|
+
|
|
|
SwingUtilities.invokeLater(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
@@ -57,6 +62,7 @@ public class ServerManagementApp {
|
|
|
final MainFrame mainFrame = new MainFrame(isAutoRunFinal);
|
|
|
mainFrame.pack();
|
|
|
mainFrame.setVisible(true);
|
|
|
+ mainFrame.setTitle(title);
|
|
|
|
|
|
// 免配置模式的时候,启动以后界面最小化。
|
|
|
if(isAutoRunFinal) {
|