From 9f049d2c92a1fa6ceb8d7d6680a55c87eb7a0d6a Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 30 九月 2024 17:14:45 +0800 Subject: [PATCH] 预测数据分析后端代码 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 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..10db3e6 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 @@ -1,16 +1,10 @@ package com.iailab; -import iail.mdk.model.common.Environment; 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 @@ -21,13 +15,13 @@ //加载动态链接库 try { Properties properties = new Properties(); - InputStream in = ModelServiceApplication.class.getClassLoader().getResourceAsStream("iailmdk.properties"); - 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"); - Environment env = new Environment(); - env.init(); +// InputStream in = ModelServiceApplication.class.getClassLoader().getResourceAsStream("iailmdk.properties"); +// 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"); +// Environment env = new Environment(); +// env.init(); } catch (Exception e) { e.printStackTrace(); System.out.println("动态链接库IAIL.MDK.Mid.Windows.dll初始化失败"); -- Gitblit v1.9.3