From 190d035f241c246b43369a63e1e755680a428333 Mon Sep 17 00:00:00 2001 From: Parker Date: Thu, 28 Mar 2024 23:16:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9E=81=E7=AB=AF?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=20=E6=9C=8D=E5=8A=A1=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=8A=A5=E9=94=99=E5=88=9D=E5=A7=8B=E5=8C=96=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/opsli/core/utils/CryptoUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c1e67d67..bbe95501 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.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 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();