From d7ac861cab28bc39f87c1af464ec4d319a0cbb37 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期二, 19 十一月 2024 15:46:15 +0800 Subject: [PATCH] test配置增加deploy.server属性,解决多网卡ip注册错误的问题 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/DataWebApplication.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/DataWebApplication.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/DataWebApplication.java index ec6152c..c8e11df 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/DataWebApplication.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/DataWebApplication.java @@ -2,12 +2,24 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.scheduling.annotation.EnableAsync; + +import javax.swing.*; @SpringBootApplication +@EnableAsync public class DataWebApplication { public static void main(String[] args) { + + SwingUtilities.invokeLater(new Runnable() { + @Override + public void run() { + System.setProperty("java.awt.im.style", "on-the-spot"); + } + }); + SpringApplication.run(DataWebApplication.class, args); } -- Gitblit v1.9.3