From 1fea3eea8bf676ac6cf35c6b98e42efdbc5b897e Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期日, 29 九月 2024 11:50:08 +0800 Subject: [PATCH] 模型生成代码后备份dll和jar,用于测试运行模型 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 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 a335d92..8376d57 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,5 +1,6 @@ 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; @@ -24,10 +25,12 @@ properties.load(in); String mdkInitPath = properties.getProperty("mdk-init-path"); System.out.println("mdkInitPath=" + mdkInitPath); - IAILMDK.initWithBean(mdkInitPath, false); + System.load(mdkInitPath + File.separator + "IAIL.MDK.Mid.Windows.dll"); + Environment env = new Environment(); + env.init(); } catch (Exception e) { e.printStackTrace(); - System.out.println("动态链接库IAILMDK初始化失败"); + System.out.println("动态链接库IAIL.MDK.Mid.Windows.dll初始化失败"); } } -- Gitblit v1.9.3