From 68535fbc652332397688624529e48555597284aa Mon Sep 17 00:00:00 2001 From: xiwa Date: Sun, 15 May 2022 12:45:57 +0800 Subject: [PATCH] =?UTF-8?q?jdk=E7=89=88=E6=9C=AC=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=BA11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/cc/iotkit/common/utils/CodecUtil.java | 3 +-- manager/pom.xml | 4 ++-- pom.xml | 2 +- .../http-biz-component/dependency-reduced-pom.xml | 2 +- standalone-package/pom.xml | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/cc/iotkit/common/utils/CodecUtil.java b/common/src/main/java/cc/iotkit/common/utils/CodecUtil.java index a920a826..9888379a 100755 --- a/common/src/main/java/cc/iotkit/common/utils/CodecUtil.java +++ b/common/src/main/java/cc/iotkit/common/utils/CodecUtil.java @@ -2,7 +2,6 @@ package cc.iotkit.common.utils; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang3.StringUtils; -import sun.misc.BASE64Decoder; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; @@ -30,7 +29,7 @@ public class CodecUtil { * @throws Exception 抛出异常 */ private static byte[] base64Decode(String base64Code) throws Exception { - return StringUtils.isEmpty(base64Code) ? null : new BASE64Decoder().decodeBuffer(base64Code); + return StringUtils.isEmpty(base64Code) ? null : new Base64().decode(base64Code); } diff --git a/manager/pom.xml b/manager/pom.xml index 20c62609..d06e34ee 100755 --- a/manager/pom.xml +++ b/manager/pom.xml @@ -172,8 +172,8 @@ maven-compiler-plugin 3.0 - 1.8 - 1.8 + 11 + 11 UTF-8 diff --git a/pom.xml b/pom.xml index 416858af..2fae0fa9 100755 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ iotkit-parent iotkit parent - 1.8 + 11 17.0.0 4.2.2 diff --git a/protocol-gateway/http-biz-component/dependency-reduced-pom.xml b/protocol-gateway/http-biz-component/dependency-reduced-pom.xml index f3146daf..3c92d399 100644 --- a/protocol-gateway/http-biz-component/dependency-reduced-pom.xml +++ b/protocol-gateway/http-biz-component/dependency-reduced-pom.xml @@ -63,7 +63,7 @@ - 8 8 + 8 diff --git a/standalone-package/pom.xml b/standalone-package/pom.xml index 3f884fbb..41826c6f 100755 --- a/standalone-package/pom.xml +++ b/standalone-package/pom.xml @@ -18,8 +18,8 @@ maven-compiler-plugin 3.0 - 1.8 - 1.8 + 11 + 11 UTF-8