From 5b6e33867d337b6aaeaf91b2fcd1b6e94c07de6c Mon Sep 17 00:00:00 2001 From: dubin <bindu_bean@163.com> Date: 星期三, 22 十月 2025 11:02:11 +0800 Subject: [PATCH] 许可证2.0 --- src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java b/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java index 3d4e4b9..f1cab8b 100644 --- a/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java +++ b/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java @@ -2,7 +2,9 @@ import de.schlichtherle.license.AbstractKeyStoreParam; -import java.io.*; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; /** * 鑷畾涔塊eyStoreParam锛岀敤浜庡皢鍏閽ュ瓨鍌ㄦ枃浠跺瓨鏀惧埌鍏朵粬纾佺洏浣嶇疆鑰屼笉鏄」鐩腑 @@ -47,7 +49,7 @@ */ @Override public InputStream getStream() throws IOException { - final InputStream in = new FileInputStream(new File(storePath)); + final InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath); if (null == in) { throw new FileNotFoundException(storePath); } -- Gitblit v1.9.1