diff --git a/README.md b/README.md index 746e8a02b1..f068fd3a06 100755 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

- + @@ -97,7 +97,7 @@ Bus (应用/服务总线) 是一个基础框架、服务套件,它基于Java17 org.aoju bus-all - 6.5.5 + 6.5.6 ``` diff --git a/bus-all/pom.xml b/bus-all/pom.xml index 8500efd6ae..5de15a52d5 100755 --- a/bus-all/pom.xml +++ b/bus-all/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-all - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -223,7 +223,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-base/pom.xml b/bus-base/pom.xml index 5b0a51dd83..7e47157de1 100755 --- a/bus-base/pom.xml +++ b/bus-base/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-base - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 2.2 @@ -92,7 +92,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-bom/pom.xml b/bus-bom/pom.xml index a9058ae3a3..85c39e0c13 100755 --- a/bus-bom/pom.xml +++ b/bus-bom/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-bom - 6.5.5 + 6.5.6 pom ${project.artifactId} @@ -191,7 +191,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-cache/pom.xml b/bus-cache/pom.xml index dfb1291329..698c41835e 100755 --- a/bus-cache/pom.xml +++ b/bus-cache/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-cache - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,17 +42,16 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 - 5.0.1 - 4.2.2 + 5.1.0 + 4.2.3 2.4.7 - 3.9.4 - 5.2.1 + 3.9.9 + 5.3.0 31.1-jre - 4.0.65 - 1.2.8 - 8.0.29 + 4.0.66 + 8.0.30 @@ -185,7 +184,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-core/README.md b/bus-core/README.md index 36b449c807..9eb41dca3d 100755 --- a/bus-core/README.md +++ b/bus-core/README.md @@ -14,7 +14,7 @@ org.aoju bus-core - 6.5.5 + 6.5.6 ``` diff --git a/bus-core/pom.xml b/bus-core/pom.xml index 225a294ef9..86b7e333ee 100755 --- a/bus-core/pom.xml +++ b/bus-core/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-core - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -68,7 +68,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-core/src/main/java/org/aoju/bus/core/Version.java b/bus-core/src/main/java/org/aoju/bus/core/Version.java index 978148eeb3..73010b4c56 100644 --- a/bus-core/src/main/java/org/aoju/bus/core/Version.java +++ b/bus-core/src/main/java/org/aoju/bus/core/Version.java @@ -60,7 +60,7 @@ public class Version { * @return 项目的版本号 */ public static String get() { - return "6.5.5.RELEASE"; + return "6.5.6.RELEASE"; } /** diff --git a/bus-core/src/main/java/org/aoju/bus/core/date/Formatter.java b/bus-core/src/main/java/org/aoju/bus/core/date/Formatter.java index 15300d5938..917b3b38c7 100644 --- a/bus-core/src/main/java/org/aoju/bus/core/date/Formatter.java +++ b/bus-core/src/main/java/org/aoju/bus/core/date/Formatter.java @@ -810,7 +810,7 @@ public static DateTime parseUTC(String text) { if (null == text) { return null; } - int length = text.length(); + final int length = text.length(); if (StringKit.contains(text, 'Z')) { if (length == Fields.UTC_PATTERN.length() - 4) { // 格式类似:2020-09-11T06:34:32Z,-4表示减去4个单引号的长度 diff --git a/bus-core/src/main/java/org/aoju/bus/core/toolkit/CollKit.java b/bus-core/src/main/java/org/aoju/bus/core/toolkit/CollKit.java index 0012b63c98..bd6b0e5054 100755 --- a/bus-core/src/main/java/org/aoju/bus/core/toolkit/CollKit.java +++ b/bus-core/src/main/java/org/aoju/bus/core/toolkit/CollKit.java @@ -2472,6 +2472,33 @@ public static List addAll(List list, String part, boolean isTrim return list; } + /** + * 一个对象不为空且不存在于该集合中时,加入到该集合中 + *

+     *     null, null = false
+     *     [], null = false
+     *     null, "123" = false
+     *     ["123"], "123" = false
+     *     [], "123" => true
+     *     ["456"], "123" = true
+     *     [Animal{"name": "jack"}], Dog{"name": "jack"} = true
+     * 
+ * + * @param collection 被加入的集合 + * @param object 要添加到集合的对象 + * @param 集合元素类型 + * @param 要添加的元素类型【为集合元素类型的类型或子类型】 + * @return 是否添加成功 + * @author Cloud-Style + */ + public static boolean addIfAbsent(Collection collection, S object) { + if (object == null || collection == null || collection.contains(object)) { + return false; + } + + return collection.add(object); + } + /** * 将另一个列表中的元素加入到列表中,如果列表中已经存在此元素则忽略之 * diff --git a/bus-core/src/main/java/org/aoju/bus/core/toolkit/RandomKit.java b/bus-core/src/main/java/org/aoju/bus/core/toolkit/RandomKit.java index db82d6f6c7..57a01a7aa4 100755 --- a/bus-core/src/main/java/org/aoju/bus/core/toolkit/RandomKit.java +++ b/bus-core/src/main/java/org/aoju/bus/core/toolkit/RandomKit.java @@ -390,6 +390,30 @@ public static String randomString(int length) { return randomString(Normal.LOWER_NUMBER, length); } + /** + * 获得一个随机的字符串 + * + * @param text 随机字符选取的样本 + * @param length 字符串的长度 + * @return 随机字符串 + */ + public static String randomString(String text, int length) { + if (StringKit.isEmpty(text)) { + return Normal.EMPTY; + } + if (length < 1) { + length = 1; + } + + final StringBuilder sb = new StringBuilder(length); + int baseLength = text.length(); + for (int i = 0; i < length; i++) { + int number = randomInt(baseLength); + sb.append(text.charAt(number)); + } + return sb.toString(); + } + /** * 获得一个随机的字符串(只包含数字和大写字符) * @@ -438,30 +462,6 @@ public static String randomNumbers(int length) { return randomString(Normal.NUMBER, length); } - /** - * 获得一个随机的字符串 - * - * @param text 随机字符选取的样本 - * @param length 字符串的长度 - * @return 随机字符串 - */ - public static String randomString(String text, int length) { - if (StringKit.isEmpty(text)) { - return Normal.EMPTY; - } - final StringBuilder sb = new StringBuilder(length); - - if (length < 1) { - length = 1; - } - int baseLength = text.length(); - for (int i = 0; i < length; i++) { - int number = randomInt(baseLength); - sb.append(text.charAt(number)); - } - return sb.toString(); - } - /** * 随机数字,数字为0~9单个数字 * diff --git a/bus-core/src/main/java/org/aoju/bus/core/toolkit/ReflectKit.java b/bus-core/src/main/java/org/aoju/bus/core/toolkit/ReflectKit.java index 35a70fb9c4..4d3c7c6194 100755 --- a/bus-core/src/main/java/org/aoju/bus/core/toolkit/ReflectKit.java +++ b/bus-core/src/main/java/org/aoju/bus/core/toolkit/ReflectKit.java @@ -575,10 +575,12 @@ public static Object[] getFieldsValue(Object object) { /** * 设置字段值 + * 若值类型与字段类型不一致,则会尝试通过 {@link Convert} 进行转换 + * 若字段类型是原始类型而传入的值是 null,则会将字段设置为对应原始类型的默认值(见 {@link ClassKit#getDefaultValue(Class)}) * * @param object 对象,static字段则此处传Class * @param fieldName 字段名 - * @param value 值,值类型必须与字段类型匹配,不会自动转换对象类型 + * @param value 值,当值类型与字段类型不匹配时,会尝试转换 * @throws InstrumentException 包装IllegalAccessException异常 */ public static void setFieldValue(Object object, String fieldName, Object value) throws InstrumentException { @@ -592,10 +594,12 @@ public static void setFieldValue(Object object, String fieldName, Object value) /** * 设置字段值 + * 若值类型与字段类型不一致,则会尝试通过 {@link Convert} 进行转换 + * 若字段类型是原始类型而传入的值是 null,则会将字段设置为对应原始类型的默认值(见 {@link ClassKit#getDefaultValue(Class)}) * * @param object 对象,如果是static字段,此参数为null * @param field 字段 - * @param value 值,值类型必须与字段类型匹配,不会自动转换对象类型 + * @param value 值,当值类型与字段类型不匹配时,会尝试转换 * @throws InstrumentException UtilException 包装IllegalAccessException异常 */ public static void setFieldValue(Object object, Field field, Object value) throws InstrumentException { diff --git a/bus-core/src/main/java/org/aoju/bus/core/toolkit/UriKit.java b/bus-core/src/main/java/org/aoju/bus/core/toolkit/UriKit.java index 00bf980706..be781a2ff2 100755 --- a/bus-core/src/main/java/org/aoju/bus/core/toolkit/UriKit.java +++ b/bus-core/src/main/java/org/aoju/bus/core/toolkit/UriKit.java @@ -1759,12 +1759,7 @@ public URL toURL(URLStreamHandler handler) { */ public URI toURI() { try { - return new URI( - getSchemeWithDefault(), - getAuthority(), - getPathString(), - getQueryString(), - getFragmentEncoded()); + return toURL().toURI(); } catch (URISyntaxException e) { return null; } diff --git a/bus-cron/pom.xml b/bus-cron/pom.xml index f64e8cbdb1..0fab433a96 100755 --- a/bus-cron/pom.xml +++ b/bus-cron/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-cron - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -66,7 +66,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-crypto/pom.xml b/bus-crypto/pom.xml index 559ea1a720..4c32e5d199 100755 --- a/bus-crypto/pom.xml +++ b/bus-crypto/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-crypto - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -79,7 +79,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-crypto/src/main/java/org/aoju/bus/crypto/Builder.java b/bus-crypto/src/main/java/org/aoju/bus/crypto/Builder.java index 0aab679ff8..a1e26fccf8 100644 --- a/bus-crypto/src/main/java/org/aoju/bus/crypto/Builder.java +++ b/bus-crypto/src/main/java/org/aoju/bus/crypto/Builder.java @@ -575,7 +575,7 @@ public static String sha256Hex(File file) { * @return {@link HMac} */ public static HMac hmac(Algorithm algorithm, String key) { - return new HMac(algorithm, StringKit.bytes(key)); + return new HMac(algorithm, StringKit.isNotEmpty(key) ? StringKit.bytes(key) : null); } /** @@ -586,6 +586,9 @@ public static HMac hmac(Algorithm algorithm, String key) { * @return {@link HMac} */ public static HMac hmac(Algorithm algorithm, byte[] key) { + if (ArrayKit.isEmpty(key)) { + key = generateKey(algorithm.getValue()).getEncoded(); + } return new HMac(algorithm, key); } @@ -597,6 +600,9 @@ public static HMac hmac(Algorithm algorithm, byte[] key) { * @return {@link HMac} */ public static HMac hmac(Algorithm algorithm, SecretKey key) { + if (ObjectKit.isNull(key)) { + key = generateKey(algorithm.getValue()); + } return new HMac(algorithm, key); } @@ -610,7 +616,7 @@ public static HMac hmac(Algorithm algorithm, SecretKey key) { * @return {@link HMac} */ public static HMac hmacMd5(String key) { - return hmacMd5(StringKit.bytes(key)); + return hmacMd5(StringKit.isNotEmpty(key) ? StringKit.bytes(key) : null); } /** @@ -623,6 +629,9 @@ public static HMac hmacMd5(String key) { * @return {@link HMac} */ public static HMac hmacMd5(byte[] key) { + if (ArrayKit.isEmpty(key)) { + key = generateKey(Algorithm.HMACMD5.getValue()).getEncoded(); + } return new HMac(Algorithm.HMACMD5, key); } @@ -648,7 +657,7 @@ public static HMac hmacMd5() { * @return {@link HMac} */ public static HMac hmacSha1(String key) { - return hmacSha1(StringKit.bytes(key)); + return hmacSha1(StringKit.isNotEmpty(key) ? StringKit.bytes(key) : null); } /** @@ -661,6 +670,9 @@ public static HMac hmacSha1(String key) { * @return {@link HMac} */ public static HMac hmacSha1(byte[] key) { + if (ArrayKit.isEmpty(key)) { + key = generateKey(Algorithm.HMACMD5.getValue()).getEncoded(); + } return new HMac(Algorithm.HMACSHA1, key); } @@ -686,7 +698,7 @@ public static HMac hmacSha1() { * @return {@link HMac} */ public static HMac hmacSha256(String key) { - return hmacSha256(StringKit.bytes(key)); + return hmacSha256(StringKit.isNotEmpty(key) ? StringKit.bytes(key) : null); } /** @@ -699,6 +711,9 @@ public static HMac hmacSha256(String key) { * @return {@link HMac} */ public static HMac hmacSha256(byte[] key) { + if (ArrayKit.isEmpty(key)) { + key = generateKey(Algorithm.HMACMD5.getValue()).getEncoded(); + } return new HMac(Algorithm.HMACSHA256, key); } diff --git a/bus-extra/pom.xml b/bus-extra/pom.xml index d4d04d43e0..c1b0957743 100644 --- a/bus-extra/pom.xml +++ b/bus-extra/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-extra - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -44,22 +44,22 @@ 17 1.18.24 1.2.83 - 2.9.0 + 2.9.1 2.13.3 1.1.8 2.5.1 2.0.3.RELEASE 1.0.0 0.3.1 - 0.1.54 - 0.33.0 + 0.1.55 + 0.34.0 3.5.0 3.8.0 5.1.1 1.21 1.0.6 - 1.3.0 - 1.1.7.6 + 1.8.0 + 1.1.8.4 4.0.4 @@ -178,10 +178,9 @@ true - net.jpountz.lz4 - lz4 + org.lz4 + lz4-java ${lz4.version} - true org.xerial.snappy @@ -211,7 +210,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-gitlab/README.md b/bus-gitlab/README.md index 6e6c8b3ee2..37a7c9798a 100755 --- a/bus-gitlab/README.md +++ b/bus-gitlab/README.md @@ -70,7 +70,7 @@ dependencies { org.aoju bus-gitlab - 6.5.5 + 6.5.6 ``` diff --git a/bus-gitlab/pom.xml b/bus-gitlab/pom.xml index e0f044374f..d375a4ad68 100755 --- a/bus-gitlab/pom.xml +++ b/bus-gitlab/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-gitlab - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -44,7 +44,7 @@ 17 2.12.4 2.36 - 5.0.0 + 4.0.4 @@ -105,7 +105,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/HookManager.java b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/HookManager.java index 157ea82000..2a35ccf1e8 100644 --- a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/HookManager.java +++ b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/HookManager.java @@ -25,7 +25,7 @@ ********************************************************************************/ package org.aoju.bus.gitlab; -import jakarta.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequest; /** * This interface provides a base class handler for processing GitLab Web Hook and System Hook callouts. diff --git a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/SystemHookManager.java b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/SystemHookManager.java index c74295d973..6370d27643 100644 --- a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/SystemHookManager.java +++ b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/SystemHookManager.java @@ -27,12 +27,12 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; -import jakarta.servlet.http.HttpServletRequest; import org.aoju.bus.gitlab.GitLabApiException; import org.aoju.bus.gitlab.HookManager; import org.aoju.bus.gitlab.support.HttpRequest; import org.aoju.bus.gitlab.support.JacksonJson; +import javax.servlet.http.HttpServletRequest; import java.io.InputStreamReader; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; diff --git a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/web/WebHookManager.java b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/web/WebHookManager.java index 50bfa6bffb..caa6c40215 100644 --- a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/web/WebHookManager.java +++ b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/hooks/web/WebHookManager.java @@ -25,12 +25,12 @@ ********************************************************************************/ package org.aoju.bus.gitlab.hooks.web; -import jakarta.servlet.http.HttpServletRequest; import org.aoju.bus.gitlab.GitLabApiException; import org.aoju.bus.gitlab.HookManager; import org.aoju.bus.gitlab.support.HttpRequest; import org.aoju.bus.gitlab.support.JacksonJson; +import javax.servlet.http.HttpServletRequest; import java.io.InputStreamReader; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; diff --git a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/support/HttpRequest.java b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/support/HttpRequest.java index 0de0a49091..246e646a7b 100644 --- a/bus-gitlab/src/main/java/org/aoju/bus/gitlab/support/HttpRequest.java +++ b/bus-gitlab/src/main/java/org/aoju/bus/gitlab/support/HttpRequest.java @@ -25,9 +25,8 @@ ********************************************************************************/ package org.aoju.bus.gitlab.support; -import jakarta.servlet.http.Cookie; -import jakarta.servlet.http.HttpServletRequest; - +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; diff --git a/bus-goalie/pom.xml b/bus-goalie/pom.xml index 2229639970..6e785b5b92 100644 --- a/bus-goalie/pom.xml +++ b/bus-goalie/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-goalie - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 31.1-jre @@ -109,7 +109,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-health/pom.xml b/bus-health/pom.xml index 0629a34e9d..3972c86f53 100755 --- a/bus-health/pom.xml +++ b/bus-health/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-health - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 5.12.0 + 5.12.1 @@ -79,7 +79,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-http/pom.xml b/bus-http/pom.xml index aaa399cf5b..15f34056c0 100755 --- a/bus-http/pom.xml +++ b/bus-http/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-http - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -93,7 +93,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-image/pom.xml b/bus-image/pom.xml index 9ae817ac31..a697f9d690 100755 --- a/bus-image/pom.xml +++ b/bus-image/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-image - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -80,7 +80,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-limiter/pom.xml b/bus-limiter/pom.xml index 1b81d2182b..55abf3f3fa 100755 --- a/bus-limiter/pom.xml +++ b/bus-limiter/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-limiter - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,8 +42,8 @@ UTF-8 UTF-8 17 - 2.7.0 - 5.2.1 + 2.7.2 + 5.3.0 3.17.4 31.1-jre @@ -134,7 +134,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-logger/pom.xml b/bus-logger/pom.xml index 22391588a1..035ce450a5 100644 --- a/bus-logger/pom.xml +++ b/bus-logger/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-logger - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -44,10 +44,10 @@ 17 1.7.36 1.2.11 - 2.17.2 + 2.18.0 1.2 2.4.1 - 3.4.3.Final + 3.5.0.Final @@ -65,7 +65,7 @@ org.jboss.logging jboss-logging - ${jboss.logging.version} + ${jboss.version} true @@ -114,7 +114,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-mapper/pom.xml b/bus-mapper/pom.xml index c1ce07623c..f93da7ab1a 100755 --- a/bus-mapper/pom.xml +++ b/bus-mapper/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-mapper - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -94,7 +94,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-notify/README.md b/bus-notify/README.md index a2870eab6d..4bf3aed809 100755 --- a/bus-notify/README.md +++ b/bus-notify/README.md @@ -11,7 +11,7 @@ org.aoju bus-notify - 6.5.5 + 6.5.6 ``` diff --git a/bus-notify/pom.xml b/bus-notify/pom.xml index d443ce0994..2ea1e5a97b 100755 --- a/bus-notify/pom.xml +++ b/bus-notify/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-notify - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -43,7 +43,7 @@ UTF-8 17 1.18.24 - 1.6.2 + 2.0.1 1.2.83 @@ -71,7 +71,7 @@ com.sun.mail - javax.mail + jakarta.mail ${mail.version} true @@ -97,7 +97,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-notify/src/main/java/org/aoju/bus/notify/provider/generic/GenericEmailProvider.java b/bus-notify/src/main/java/org/aoju/bus/notify/provider/generic/GenericEmailProvider.java index 92191dcb38..db72d3c6a5 100644 --- a/bus-notify/src/main/java/org/aoju/bus/notify/provider/generic/GenericEmailProvider.java +++ b/bus-notify/src/main/java/org/aoju/bus/notify/provider/generic/GenericEmailProvider.java @@ -25,6 +25,11 @@ ********************************************************************************/ package org.aoju.bus.notify.provider.generic; +import jakarta.activation.DataHandler; +import jakarta.activation.DataSource; +import jakarta.activation.FileDataSource; +import jakarta.mail.*; +import jakarta.mail.internet.*; import org.aoju.bus.core.exception.InstrumentException; import org.aoju.bus.core.lang.Symbol; import org.aoju.bus.core.toolkit.ArrayKit; @@ -36,11 +41,6 @@ import org.aoju.bus.notify.magic.Property; import org.aoju.bus.notify.provider.AbstractProvider; -import javax.activation.DataHandler; -import javax.activation.DataSource; -import javax.activation.FileDataSource; -import javax.mail.*; -import javax.mail.internet.*; import java.io.File; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; diff --git a/bus-oauth/README.md b/bus-oauth/README.md index 730c7a006b..5240269bfb 100755 --- a/bus-oauth/README.md +++ b/bus-oauth/README.md @@ -15,8 +15,8 @@ org.aoju - bus-oauth - 6.5.5 + bus-oauth + 6.5.6 ``` diff --git a/bus-oauth/pom.xml b/bus-oauth/pom.xml index aa1c5f78ec..cc658d9822 100755 --- a/bus-oauth/pom.xml +++ b/bus-oauth/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-oauth - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 4.31.24.ALL + 4.33.1.ALL 1.18.24 1.2.83 @@ -73,7 +73,7 @@ com.alipay.sdk alipay-sdk-java - ${alipay.sdk.version} + ${alipay.version} true @@ -92,7 +92,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-office/pom.xml b/bus-office/pom.xml index 203cd2a330..130da4c4bf 100755 --- a/bus-office/pom.xml +++ b/bus-office/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-office - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -121,7 +121,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-opencv/pom.xml b/bus-opencv/pom.xml index 52edcf311a..78fcc43502 100755 --- a/bus-opencv/pom.xml +++ b/bus-opencv/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-opencv - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -58,7 +58,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 -Xdoclint:none -Xdoclint:none diff --git a/bus-pager/README.md b/bus-pager/README.md index 6115599640..105840ecbb 100755 --- a/bus-pager/README.md +++ b/bus-pager/README.md @@ -42,7 +42,7 @@ org.aoju bus-pager - 6.5.5 + 6.5.6 ``` diff --git a/bus-pager/pom.xml b/bus-pager/pom.xml index 3000d1189e..e1165bc712 100755 --- a/bus-pager/pom.xml +++ b/bus-pager/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-pager - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -44,11 +44,9 @@ 17 3.5.10 31.1-jre - 4.2 + 4.5 + 5.0.1 1.2.8 - 2.3.13 - 0.9.5.5 - 2.9.0 @@ -75,28 +73,16 @@ ${jsqlparser.version} true - - com.alibaba - druid - ${druid.version} - true - com.zaxxer - HikariCP-java6 + HikariCP ${hikari.version} true - com.mchange - c3p0 - ${c3p0.version} - true - - - org.apache.commons - commons-dbcp2 - ${dbcp2.version} + com.alibaba + druid + ${druid.version} true @@ -115,7 +101,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/C3P0.java b/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/C3P0.java deleted file mode 100644 index 5004cb58e2..0000000000 --- a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/C3P0.java +++ /dev/null @@ -1,44 +0,0 @@ -/********************************************************************************* - * * - * The MIT License (MIT) * - * * - * Copyright (c) 2015-2022 aoju.org mybatis.io and other contributors. * - * * - * Permission is hereby granted, free of charge, to any person obtaining a copy * - * of this software and associated documentation files (the "Software"), to deal * - * in the Software without restriction, including without limitation the rights * - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * - * copies of the Software, and to permit persons to whom the Software is * - * furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included in * - * all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * - * THE SOFTWARE. * - * * - ********************************************************************************/ -package org.aoju.bus.pager.dialect.auto; - -import com.mchange.v2.c3p0.ComboPooledDataSource; -import org.aoju.bus.pager.dialect.AbstractAutoDialect; - -/** - * c3p0 - * - * @author Kimi Liu - * @since Java 17+ - */ -public class C3P0 extends AbstractAutoDialect { - - @Override - public String getJdbcUrl(ComboPooledDataSource comboPooledDataSource) { - return comboPooledDataSource.getJdbcUrl(); - } - -} diff --git a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Dbcp.java b/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Dbcp.java deleted file mode 100644 index 6a38cb8f7f..0000000000 --- a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Dbcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/********************************************************************************* - * * - * The MIT License (MIT) * - * * - * Copyright (c) 2015-2022 aoju.org mybatis.io and other contributors. * - * * - * Permission is hereby granted, free of charge, to any person obtaining a copy * - * of this software and associated documentation files (the "Software"), to deal * - * in the Software without restriction, including without limitation the rights * - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * - * copies of the Software, and to permit persons to whom the Software is * - * furnished to do so, subject to the following conditions: * - * * - * The above copyright notice and this permission notice shall be included in * - * all copies or substantial portions of the Software. * - * * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * - * THE SOFTWARE. * - * * - ********************************************************************************/ -package org.aoju.bus.pager.dialect.auto; - -import org.aoju.bus.pager.dialect.AbstractAutoDialect; -import org.apache.commons.dbcp2.BasicDataSource; - -/** - * commons-dbcp - * - * @author Kimi Liu - * @since Java 17+ - */ -public class Dbcp extends AbstractAutoDialect { - - @Override - public String getJdbcUrl(BasicDataSource basicDataSource) { - return basicDataSource.getUrl(); - } - -} diff --git a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Defalut.java b/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Defalut.java index bfeff34efa..c8035d6a53 100644 --- a/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Defalut.java +++ b/bus-pager/src/main/java/org/aoju/bus/pager/dialect/auto/Defalut.java @@ -54,21 +54,6 @@ public class Defalut implements AutoDialect { } catch (Exception ignore) { // ignore } - try { - AUTO_DIALECTS.add(new Druid()); - } catch (Exception ignore) { - // ignore - } - try { - AUTO_DIALECTS.add(new C3P0()); - } catch (Exception ignore) { - // ignore - } - try { - AUTO_DIALECTS.add(new Dbcp()); - } catch (Exception ignore) { - // ignore - } } private final Map urlMap = new ConcurrentHashMap<>(); diff --git a/bus-pager/src/main/java/org/aoju/bus/pager/proxy/PageAutoDialect.java b/bus-pager/src/main/java/org/aoju/bus/pager/proxy/PageAutoDialect.java index 7ab1de8061..f69024fe9e 100644 --- a/bus-pager/src/main/java/org/aoju/bus/pager/proxy/PageAutoDialect.java +++ b/bus-pager/src/main/java/org/aoju/bus/pager/proxy/PageAutoDialect.java @@ -31,7 +31,10 @@ import org.aoju.bus.pager.AutoDialect; import org.aoju.bus.pager.Dialect; import org.aoju.bus.pager.dialect.AbstractPaging; -import org.aoju.bus.pager.dialect.auto.*; +import org.aoju.bus.pager.dialect.auto.Defalut; +import org.aoju.bus.pager.dialect.auto.Druid; +import org.aoju.bus.pager.dialect.auto.Early; +import org.aoju.bus.pager.dialect.auto.Hikari; import org.aoju.bus.pager.dialect.base.*; import org.apache.ibatis.mapping.MappedStatement; @@ -97,8 +100,6 @@ public class PageAutoDialect { registerAutoDialectAlias("early", Early.class); registerAutoDialectAlias("hikari", Hikari.class); registerAutoDialectAlias("druid", Druid.class); - registerAutoDialectAlias("dbcp", Dbcp.class); - registerAutoDialectAlias("c3p0", C3P0.class); // 不配置时,默认使用 Defalut registerAutoDialectAlias("default", Defalut.class); } diff --git a/bus-pay/pom.xml b/bus-pay/pom.xml index 359e64c188..3374e0d3c0 100644 --- a/bus-pay/pom.xml +++ b/bus-pay/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-pay - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -46,20 +46,16 @@ 1.18.24 1.2.83 4.0.4 - 4.5.4 + 4.5.13 3.5.0 1.70 - 2.7.0 - 4.3.5.B - 4.31.24.ALL + 2.7.2 + 4.3.9.B + 4.33.1.ALL + 2.0.0 - - org.aoju - bus-base - ${project.version} - ${project.groupId} bus-cache @@ -75,11 +71,6 @@ bus-http ${project.version} - - ${project.groupId} - bus-validate - ${project.version} - org.projectlombok lombok @@ -98,6 +89,12 @@ ${bouncycastle.version} true + + org.bouncycastle + bcpkix-jdk15on + ${bouncycastle.version} + true + jakarta.servlet jakarta.servlet-api @@ -117,12 +114,18 @@ com.paypal.sdk checkout-sdk - 1.0.5 + ${paypal.version} com.github.binarywang weixin-java-pay ${binarywang.version} + + + io.github.x-stream + mxparser + + @@ -140,7 +143,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-proxy/pom.xml b/bus-proxy/pom.xml index d9b480403b..25f7371b49 100755 --- a/bus-proxy/pom.xml +++ b/bus-proxy/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-proxy - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,10 +42,10 @@ UTF-8 UTF-8 17 - 3.27.0-GA - 4.0.63 + 3.29.1-GA + 4.0.66 3.3.0 - 1.9.6 + 1.9.9.1 @@ -99,7 +99,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-sensitive/pom.xml b/bus-sensitive/pom.xml index c0b106d01b..57850fc1bb 100755 --- a/bus-sensitive/pom.xml +++ b/bus-sensitive/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-sensitive - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -85,7 +85,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-setting/pom.xml b/bus-setting/pom.xml index 1952846eee..f1cfdda0ed 100755 --- a/bus-setting/pom.xml +++ b/bus-setting/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-setting - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 1.29 + 1.30 @@ -73,7 +73,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-shade/pom.xml b/bus-shade/pom.xml index cf50158dba..20967afe86 100755 --- a/bus-shade/pom.xml +++ b/bus-shade/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-shade - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,12 +42,12 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.21 - 2.3.30 + 2.3.31 1.18.24 - 1.2.8 - 8.0.29 + 5.0.1 + 8.0.30 @@ -81,9 +81,9 @@ true - com.alibaba - druid - ${druid.version} + com.zaxxer + HikariCP + ${hikari.version} true @@ -108,7 +108,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-socket/pom.xml b/bus-socket/pom.xml index a6d7130fba..57b31af105 100755 --- a/bus-socket/pom.xml +++ b/bus-socket/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-socket - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -66,7 +66,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-spring/pom.xml b/bus-spring/pom.xml index e69a762c65..f6acfff550 100755 --- a/bus-spring/pom.xml +++ b/bus-spring/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-spring - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,7 +42,7 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 @@ -81,7 +81,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-starter/pom.xml b/bus-starter/pom.xml index 3996c17377..52f2adc282 100755 --- a/bus-starter/pom.xml +++ b/bus-starter/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-starter - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,19 +42,19 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 - 1.9.6 + 1.9.9.1 2.2 31.1-jre 4.3.1 - 5.0.1 + 5.1.0 3.5.10 2.0.7 2.0.1.Final 4.2 - 8.0.29 - 3.0.8 + 8.0.30 + 3.0.10 4.0.4 7.17.4 @@ -210,12 +210,12 @@ ${mybatis.spring.version} true - - javax.validation - validation-api - ${validation.version} - true - + com.github.jsqlparser jsqlparser @@ -322,7 +322,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-starter/src/main/java/org/aoju/bus/starter/i18n/I18nConfiguration.java b/bus-starter/src/main/java/org/aoju/bus/starter/i18n/I18nConfiguration.java index 8c17077989..e96da6c18c 100755 --- a/bus-starter/src/main/java/org/aoju/bus/starter/i18n/I18nConfiguration.java +++ b/bus-starter/src/main/java/org/aoju/bus/starter/i18n/I18nConfiguration.java @@ -31,9 +31,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.support.ResourceBundleMessageSource; -import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; - -import javax.validation.Validator; /** * 国际化配置 @@ -47,6 +44,7 @@ public class I18nConfiguration { @Autowired I18nProperties properties; + @Bean private ResourceBundleMessageSource getMessageSource() { ResourceBundleMessageSource bundleMessageSource = new ResourceBundleMessageSource(); bundleMessageSource.setDefaultEncoding(StringKit.toString(this.properties.getDefaultEncoding(), Charset.DEFAULT_UTF_8)); @@ -54,16 +52,4 @@ private ResourceBundleMessageSource getMessageSource() { return bundleMessageSource; } - /** - * 注入 Validator 验证 Bean - * - * @return 校验信息 - */ - @Bean - public Validator getValidator() { - LocalValidatorFactoryBean validator = new LocalValidatorFactoryBean(); - validator.setValidationMessageSource(getMessageSource()); - return validator; - } - } diff --git a/bus-storage/pom.xml b/bus-storage/pom.xml index a45137781a..ecbdbf680a 100755 --- a/bus-storage/pom.xml +++ b/bus-storage/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-storage - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -159,7 +159,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-tracer/pom.xml b/bus-tracer/pom.xml index e0b830ab58..f4901db421 100755 --- a/bus-tracer/pom.xml +++ b/bus-tracer/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-tracer - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -42,9 +42,9 @@ UTF-8 UTF-8 17 - 2.7.0 + 2.7.2 1.18.24 - 3.0.8 + 3.0.10 4.0.4 2.7.18 4.5.13 @@ -163,7 +163,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs diff --git a/bus-validate/pom.xml b/bus-validate/pom.xml index cf64a20302..576ef25c08 100755 --- a/bus-validate/pom.xml +++ b/bus-validate/pom.xml @@ -6,7 +6,7 @@ org.aoju bus-validate - 6.5.5 + 6.5.6 jar ${project.artifactId} @@ -73,7 +73,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 attach-javadocs