fix: 修复极端情况下 服务启动报错初始化失败异常

development
Parker 8 months ago
parent 6feaaca93a
commit 190d035f24

@ -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