Skip to content

Commit

Permalink
Merge pull request #39 from hiparker/development
Browse files Browse the repository at this point in the history
fix: 修复极端情况下 服务启动报错初始化失败异常
  • Loading branch information
hiparker committed Mar 28, 2024
2 parents e59dd0c + 190d035 commit 9dd0592
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@
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;
Expand Down Expand Up @@ -72,7 +73,7 @@ public static String symmetricEncryptToStr(Object data){


@Autowired
public void init(OptionsUtil optionsUtil){
public void init(OptionsUtil optionsUtil, CacheUtil cacheUtil){
// 非对称
ASYMMETRIC = CryptoPlugin.getAsymmetric();
ASYMMETRIC_CRYPTO_MODEL = CryptoConfigFactory.INSTANCE.getCryptoAsymmetric();
Expand Down

0 comments on commit 9dd0592

Please sign in to comment.