From a073250f6f4f8c32888bc60b24ff6984e29af51e Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 01 八月 2024 17:04:01 +0800
Subject: [PATCH] #增加弃车功能
---
src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java | 4 +++-
1 files changed, 3 insertions(+), 1 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..74d3e41 100644
--- a/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java
+++ b/src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java
@@ -1,6 +1,7 @@
package com.zy.system.entity.license;
import de.schlichtherle.license.AbstractKeyStoreParam;
+import org.apache.poi.util.IOUtils;
import java.io.*;
@@ -47,7 +48,8 @@
*/
@Override
public InputStream getStream() throws IOException {
- final InputStream in = new FileInputStream(new File(storePath));
+ final InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath);
+// final InputStream in = new FileInputStream(new File(storePath));
if (null == in) {
throw new FileNotFoundException(storePath);
}
--
Gitblit v1.9.1