From 0da03950e4e26ed5e8a16d1a6e0d352734519846 Mon Sep 17 00:00:00 2001 From: zwl <1051256694@qq.com> Date: 星期一, 13 十月 2025 18:25:13 +0800 Subject: [PATCH] 新增最新证书功能 --- 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