diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/CryptoUtil.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/CryptoUtil.java index c1e67d6..bbe9550 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/CryptoUtil.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/CryptoUtil.java @@ -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();