From 3fba1d84220268d871c3c28e0e25f6eab3526f46 Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期四, 08 六月 2023 10:13:37 +0800
Subject: [PATCH] 提交更新

---
 src/main/java/com/boying/Application.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/boying/Application.java b/src/main/java/com/boying/Application.java
index 7424f5d..5a2e03a 100644
--- a/src/main/java/com/boying/Application.java
+++ b/src/main/java/com/boying/Application.java
@@ -1,11 +1,13 @@
 package com.boying;
 
+
 import cn.hutool.core.io.resource.ClassPathResource;
 import net.sf.jni4net.Bridge;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.context.annotation.Bean;
 import org.springframework.scheduling.annotation.EnableScheduling;
+
 
 import java.io.File;
 import java.io.IOException;
@@ -28,9 +30,7 @@
     public static void getBean() throws IOException {
         Bridge.setVerbose(true);
         Bridge.init();
-        //鍔犺浇璧勬簮鏂囦欢
-        ClassPathResource classPathResource = new ClassPathResource("jni/LedShow.j4n.dll");
-        File loadDll = classPathResource.getFile();
+        File loadDll = new File("LedShow.j4n.dll");
         Bridge.LoadAndRegisterAssemblyFrom(loadDll);
     }
 }

--
Gitblit v1.9.1