自动化立体仓库 - WMS系统
#
tzsk
2024-12-04 4c7732b2d35a0074a7b6f7c768d73f5dbeffdca3
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);
        }