fix: keystore
This commit is contained in:
1 parent
88aae7d0dc
commit
15496d4644
2 files changed
+5
-1
No files matched your search
@@ -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�������
|
||||
license.privateKeysPath=/opt/license/keystore/privateKeys.keystore
|
||||
license.licensePath=/opt/license/license.lic
|
||||
|
||||
Reference in new issue
Block a user