自动化立体仓库 - WMS系统
Junjie
2023-10-07 4331d75b49680943d1983fd2310e4df3719d79b2
#新增许可证
1个文件已添加
1个文件已删除
2个文件已修改
17 ■■■■ 已修改文件
src/main/java/com/zy/system/entity/license/LicenseCheckListener.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/map.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/publicCerts.keystore 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/system/entity/license/LicenseCheckListener.java
@@ -10,6 +10,8 @@
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import java.io.File;
/**
 * 在项目启动时安装证书
 */
@@ -61,12 +63,18 @@
        if(!Cools.isEmpty(licensePath)){
            logger.info("++++++++ 开始加载许可证 ++++++++");
            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(licensePath);
            param.setPublicKeysStorePath(publicKeysStorePath);
            param.setLicensePath(licensePathFile.getPath());
            param.setPublicKeysStorePath(publicKeysStoreFile.getPath());
            LicenseVerify licenseVerify = new LicenseVerify();
            //安装证书
src/main/resources/application.yml
@@ -47,8 +47,8 @@
  subject: tzskasrs
  publicAlias: publicCert
  storePass: public_zhongyang_123456789
  licensePath: D:/license/license.lic
  publicKeysStorePath: D:/license/publicCerts.keystore
  licensePath: license.lic
  publicKeysStorePath: publicCerts.keystore
# 下位机配置
wcs-slave:
src/main/resources/map.json
File was deleted
src/main/resources/publicCerts.keystore
Binary files differ