From 345d99e6a9de0ecc5009105ff4ca28185745a263 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E8=B1=AA?= <980287353@qq.com>
Date: Mon, 29 Dec 2025 17:45:59 +0800
Subject: [PATCH] publish zjut-1.1.3
---
pom.xml | 20 ++++++++--------
springboot-ademo/pom.xml | 4 ++--
springboot-annotation/pom.xml | 2 +-
springboot-database/pom.xml | 2 +-
springboot-encrypt/pom.xml | 2 +-
springboot-login/pom.xml | 2 +-
springboot-message/pom.xml | 2 +-
springboot-platform/pom.xml | 2 +-
springboot-poi/pom.xml | 2 +-
springboot-util/pom.xml | 2 +-
.../tiesheng/util/config/EncryptConfig.java | 24 +++++++++++++------
springboot-web/pom.xml | 2 +-
12 files changed, 38 insertions(+), 28 deletions(-)
diff --git a/pom.xml b/pom.xml
index 52637f0..eb51167 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
pom
springboot-parent
杭州铁晟科技有限公司基础依赖
@@ -57,55 +57,55 @@
com.tiesheng.springboot-parent
springboot-database
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-login
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-web
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-util
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-platform
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-message
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-encrypt
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-annotation
- 1.1.2
+ zjut-1.1.3
com.tiesheng.springboot-parent
springboot-poi
- 1.1.2
+ zjut-1.1.3
diff --git a/springboot-ademo/pom.xml b/springboot-ademo/pom.xml
index 0a3183d..1081e82 100644
--- a/springboot-ademo/pom.xml
+++ b/springboot-ademo/pom.xml
@@ -6,11 +6,11 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-ademo
- 1.1.2
+ zjut-1.1.3
8
diff --git a/springboot-annotation/pom.xml b/springboot-annotation/pom.xml
index 1002276..7adefed 100644
--- a/springboot-annotation/pom.xml
+++ b/springboot-annotation/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-annotation
diff --git a/springboot-database/pom.xml b/springboot-database/pom.xml
index ec8ccb3..d6642f1 100644
--- a/springboot-database/pom.xml
+++ b/springboot-database/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-database
diff --git a/springboot-encrypt/pom.xml b/springboot-encrypt/pom.xml
index afcbbd2..e1d3af0 100644
--- a/springboot-encrypt/pom.xml
+++ b/springboot-encrypt/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-encrypt
diff --git a/springboot-login/pom.xml b/springboot-login/pom.xml
index 9dff645..0d540c5 100644
--- a/springboot-login/pom.xml
+++ b/springboot-login/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-login
diff --git a/springboot-message/pom.xml b/springboot-message/pom.xml
index 1195c45..4fda67b 100644
--- a/springboot-message/pom.xml
+++ b/springboot-message/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-message
diff --git a/springboot-platform/pom.xml b/springboot-platform/pom.xml
index 44c17f2..9c2d9e4 100644
--- a/springboot-platform/pom.xml
+++ b/springboot-platform/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-platform
diff --git a/springboot-poi/pom.xml b/springboot-poi/pom.xml
index 9a360fd..e5f529b 100644
--- a/springboot-poi/pom.xml
+++ b/springboot-poi/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-poi
diff --git a/springboot-util/pom.xml b/springboot-util/pom.xml
index 159eb95..46aac4d 100644
--- a/springboot-util/pom.xml
+++ b/springboot-util/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-util
diff --git a/springboot-util/src/main/java/com/tiesheng/util/config/EncryptConfig.java b/springboot-util/src/main/java/com/tiesheng/util/config/EncryptConfig.java
index 0439d66..01cfb3b 100644
--- a/springboot-util/src/main/java/com/tiesheng/util/config/EncryptConfig.java
+++ b/springboot-util/src/main/java/com/tiesheng/util/config/EncryptConfig.java
@@ -23,17 +23,26 @@ public class EncryptConfig {
/**
* 加解密对象
*/
- private final SM4 sm4;
+ private static SM4 sm4;
/**
* 加密密钥
*/
- private String key = "WmdUzPJXbngVNiaSsQrihg==";
+ private String key = "Z1mn6fKe6ubnm5762KR3Cg==";
private Integer saltSize = 8;
private boolean body = false;
- public EncryptConfig() {
- sm4 = SmUtil.sm4(Base64.decode(getKey()));
+
+ /**
+ * 获取SM4对象
+ *
+ * @return
+ */
+ private SM4 getSm4() {
+ if (sm4 == null) {
+ sm4 = SmUtil.sm4(Base64.decode(getKey()));
+ }
+ return sm4;
}
/**
@@ -46,7 +55,7 @@ public class EncryptConfig {
if (StrUtil.isEmpty(content)) {
return "";
}
- return sm4.encryptBase64(content);
+ return getSm4().encryptBase64(content);
}
@@ -58,7 +67,7 @@ public class EncryptConfig {
*/
public String decrypt(String base64) {
try {
- return sm4.decryptStr(base64);
+ return getSm4().decryptStr(base64);
} catch (Exception ignore) {
}
return base64;
@@ -117,7 +126,8 @@ public class EncryptConfig {
///////////////////////////////////////////////////////////////////////////
// setter\getter
- ///////////////////////////////////////////////////////////////////////////
+
+ /// ////////////////////////////////////////////////////////////////////////
public String getKey() {
return key;
diff --git a/springboot-web/pom.xml b/springboot-web/pom.xml
index 8e0675e..7a06683 100644
--- a/springboot-web/pom.xml
+++ b/springboot-web/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 1.1.2
+ zjut-1.1.3
springboot-web