fix: keystore
This commit is contained in:
@@ -34,6 +34,9 @@ public class LicenseCreatorController {
|
||||
@Value("${license.licensePath}")
|
||||
private String licensePath;
|
||||
|
||||
@Value("${license.privateKeysPath}")
|
||||
private String privateKeysPath;
|
||||
|
||||
/**
|
||||
* 获取服务器硬件信息
|
||||
*
|
||||
@@ -110,7 +113,7 @@ public class LicenseCreatorController {
|
||||
}
|
||||
// 相对路径resources资源目录
|
||||
// String resourcePath = getClass().getClassLoader().getResource("").getPath();
|
||||
param.setPrivateKeysStorePath("/opt/license/keystore/privateKeys.keystore");
|
||||
param.setPrivateKeysStorePath(licensePath);
|
||||
// param.setPrivateKeysStorePath("D:\\projects\\testdir\\spring-boot2-license\\cloud-license-serve\\target\\classes\\privateCerts.keystore");
|
||||
param.setIssuedTime(new Date());
|
||||
param.setExpiryTime(genParam.getExpiryTime());
|
||||
|
||||
@@ -6,5 +6,6 @@ server.shutdown=graceful
|
||||
spring.lifecycle.timeout-per-shutdown-phase=10s
|
||||
|
||||
#License<73><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
license.privateKeysPath=/opt/license/keystore/privateKeys.keystore
|
||||
license.licensePath=/opt/license/license.lic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user