潘志宝
2024-09-26 1373561069f7e19383dbc178c19787c4b3f0df3b
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/ModelServiceApplication.java
@@ -16,7 +16,7 @@
@SpringBootApplication
public class ModelServiceApplication implements CommandLineRunner {
    /*static {
    static {
        //加载动态链接库
        try {
            Properties properties = new Properties();
@@ -30,26 +30,8 @@
            System.out.println("动态链接库IAILMDK初始化失败");
        }
        try {
            System.out.println("动态加载dll");
            String dllDir = Objects.requireNonNull(ModelServiceApplication.class.getClassLoader().getResource("dll")).getPath();
            File dir = new File(dllDir);
            if (dir.exists()) {
                File[] files = dir.listFiles();
                if (files.length > 0) {
                    for (File file : files) {
                        System.out.println("加载:" + file.getAbsolutePath());
                        System.load(file.getAbsolutePath());
                    }
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("动态加载dll失败");
        }
    }
*/
    public static void main(String[] args) {
        SpringApplication.run(ModelServiceApplication.class, args);