From 1b230d7961b2d5068298f0cba13287cabd2fd649 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期三, 17 七月 2024 18:47:35 +0800 Subject: [PATCH] # --- src/main/java/com/zy/system/entity/license/LicenseCheckListener.java | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/zy/system/entity/license/LicenseCheckListener.java b/src/main/java/com/zy/system/entity/license/LicenseCheckListener.java index 1659df2..e268997 100644 --- a/src/main/java/com/zy/system/entity/license/LicenseCheckListener.java +++ b/src/main/java/com/zy/system/entity/license/LicenseCheckListener.java @@ -11,6 +11,7 @@ import org.springframework.stereotype.Component; import java.io.File; +import java.io.InputStream; /** * 鍦ㄩ」鐩惎鍔ㄦ椂瀹夎璇佷功 @@ -64,18 +65,18 @@ logger.info("++++++++ 寮�濮嬪姞杞借鍙瘉 ++++++++"); try { - String publicKeysStoreFileName = this.getClass().getClassLoader().getResource(publicKeysStorePath).getPath(); - File publicKeysStoreFile = new File(publicKeysStoreFileName); - - String licensePathFileName = this.getClass().getClassLoader().getResource(licensePath).getPath(); - File licensePathFile = new File(licensePathFileName); +// String publicKeysStoreFileName = this.getClass().getClassLoader().getResource(publicKeysStorePath).getPath(); +// File publicKeysStoreFile = new File(publicKeysStoreFileName); +// +// String licensePathFileName = this.getClass().getClassLoader().getResource(licensePath).getPath(); +// File licensePathFile = new File(licensePathFileName); LicenseVerifyParam param = new LicenseVerifyParam(); param.setSubject(subject); param.setPublicAlias(publicAlias); param.setStorePass(storePass); - param.setLicensePath(licensePathFile.getPath()); - param.setPublicKeysStorePath(publicKeysStoreFile.getPath()); + param.setLicensePath(licensePath); + param.setPublicKeysStorePath(publicKeysStorePath); LicenseVerify licenseVerify = new LicenseVerify(); //瀹夎璇佷功 -- Gitblit v1.9.1