Merge pull request #39 from hiparker/development

fix: 修复极端情况下 服务启动报错初始化失败异常
master 2.1.4-fix
Anthony Parker 7 months ago committed by GitHub
commit 9dd0592445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,6 +21,7 @@ import opsli.plugins.crypto.model.CryptoAsymmetric;
import opsli.plugins.crypto.model.CryptoSymmetric;
import opsli.plugins.crypto.strategy.CryptoAsymmetricService;
import opsli.plugins.crypto.strategy.CryptoSymmetricService;
import org.opsli.core.cache.CacheUtil;
import org.opsli.core.options.CryptoConfigFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
@ -72,7 +73,7 @@ public class CryptoUtil {
@Autowired
public void init(OptionsUtil optionsUtil){
public void init(OptionsUtil optionsUtil, CacheUtil cacheUtil){
// 非对称
ASYMMETRIC = CryptoPlugin.getAsymmetric();
ASYMMETRIC_CRYPTO_MODEL = CryptoConfigFactory.INSTANCE.getCryptoAsymmetric();

Loading…
Cancel
Save