From 235273fed1c7a09afce35e0a76809ce7f1d41886 Mon Sep 17 00:00:00 2001 From: lbwNB Date: Sun, 4 Oct 2020 16:52:19 +0800 Subject: [PATCH] :bug: Fixing a bug. gateway config injection fail --- .../com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java index 8cf4a82c..f4468930 100755 --- a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java +++ b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java @@ -53,7 +53,7 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory { private static final String KEY_ALGORITHM = "AES"; - private GatewayConfigProperties configProperties; + private final GatewayConfigProperties configProperties; private static String decryptAES(String data, String pass) { AES aes = new AES(Mode.CBC, Padding.NoPadding, new SecretKeySpec(pass.getBytes(), KEY_ALGORITHM),