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; /** * 自定义KeyStoreParam,用于将公私钥存储文件存放到其他磁盘位置而不是项目中 @@ -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); }