From 303715d81f0c1cd8b32cd659b7734c01565369a6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 30 九月 2024 17:46:55 +0800
Subject: [PATCH] Merge branch 'master' of ssh://172.16.8.100:29418/iailab-plat

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java
index 8376d57..4cb632e 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java
@@ -4,13 +4,10 @@
 import org.springframework.boot.CommandLineRunner;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import com.iail.IAILMDK;
-import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.scheduling.annotation.EnableAsync;
 
 import java.io.File;
 import java.io.InputStream;
-import java.util.Objects;
 import java.util.Properties;
 
 @EnableAsync
@@ -25,7 +22,11 @@
             properties.load(in);
             String mdkInitPath = properties.getProperty("mdk-init-path");
             System.out.println("mdkInitPath=" + mdkInitPath);
-            System.load(mdkInitPath + File.separator + "IAIL.MDK.Mid.Windows.dll");
+            File file = new File(mdkInitPath + File.separator + "IAIL.MDK.Mid.Windows.dll");
+            if (!file.exists()) {
+                throw new RuntimeException("动态链接库IAIL.MDK.Mid.Windows.dll文件不存在," + file.getAbsolutePath());
+            }
+            System.load(file.getAbsolutePath());
             Environment env = new Environment();
             env.init();
         } catch (Exception e) {

--
Gitblit v1.9.3