v5.4.5 修复 java.lang.NoClassDefFoundError: com/google/gson/JsonParseException
Gitea Actions Build / Build (push) Canceled after 0s
Gitea Actions Build / Build (push) Canceled after 0s
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
# Changelog
|
||||
|
||||

|
||||
|
||||
本文件记录 mingli-utils 各版本的主要变更。
|
||||
|
||||
## [5.5.2] - 2026-11-17
|
||||
|
||||
### 新增
|
||||
|
||||
- **tuple**:实现 `Tuple.compareTo` 字典序比较——同类型可比较元素按自然顺序,
|
||||
其余按字符串形式比较;公共前缀相等时元素个数较少的元组在前。
|
||||
新增 `TestTuple` 测试覆盖 6 种比较场景。
|
||||
@@ -12,6 +15,7 @@
|
||||
## [5.5.1] - 2026-11-17
|
||||
|
||||
### 新增
|
||||
|
||||
- **json**:新增 `reader` / `witer` / `judgment` 三组抽象,为 Jackson2 与 Jackson3 分别提供
|
||||
`JsonReader`、`JsonArrayReader`、`JsonObjectReader`、`JsonWriter`、`ArrayWriter`、`ObjectWriter`
|
||||
与 `ReaderJudgment` 实现(`BaseJsonReader` / `BaseJsonWriter` / `BaseJsonJudgment` 等基类)。
|
||||
@@ -20,6 +24,7 @@
|
||||
`toString()` 输出包含 `zoneId`。
|
||||
|
||||
### 变更
|
||||
|
||||
- **json**:重构转换器体系——移除按类型划分的 `BaseJsonIntConverter`、`BaseJsonStringConverter`
|
||||
等 10 个转换器及 `JsonConverter` 接口,统一由 `BaseJsonConverter` 与 `JsonConverterUtils` 处理;
|
||||
简化 `DateTimeJsonConverter`、`UUIDJsonConverter`、`NetworkEndpointJsonConverter` 与
|
||||
@@ -29,23 +34,28 @@
|
||||
同步适配新的 JSON 转换器体系。
|
||||
|
||||
### 文档
|
||||
|
||||
- 补全 src 下全部 Kotlin 文件的中文 KDoc 与 Java 文件的 Javadoc(约 1.3 万处),
|
||||
覆盖 exception、json、springboot、mybatis/mybatisplus、thread/netty/http、
|
||||
Tuple1~Tuple100 生成类、MediaType 全部枚举项及测试代码;已有文档保持不变。
|
||||
|
||||
## [5.4.4] - 2026-11-17
|
||||
|
||||
- 构建脚本调整(build.gradle.kts 发布配置完善)。
|
||||
- SpringBoot 自动配置重构:新增 `JsonAutoConfiguration` 与 `JacksonBuilder`,
|
||||
精简 Jackson2/Jackson3 JsonApi 自动配置。
|
||||
|
||||
## [5.4.3] - 2026-11-17
|
||||
|
||||
- 新增 `JacksonJsonBuilder` / `JacksonJsonBuilderImpl` 构建器。
|
||||
- `DateTime`、`UUID` 小幅调整;补充 log4j2 测试配置。
|
||||
|
||||
## [5.4.2] - 2026-11
|
||||
|
||||
- 修复 `JSONA.jsonApi` 编译错误。
|
||||
- **mybatisplus**:新增 `FastBaseIServiceNew3518`(适配 MyBatis-Plus 3.5.18)。
|
||||
|
||||
## [5.4.0] - 2026-11
|
||||
|
||||
- **mybatisplus**:新增 `FastBaseIService`。
|
||||
- 全项目统一 Tab 缩进并补全尾随逗号。
|
||||
+3
-3
@@ -16,13 +16,13 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile NetworkEndpointJsonConverter.kt
|
||||
* LastUpdate 2026-11-17 20:01:08
|
||||
* LastUpdate 2026-11-18 00:01:29
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
package com.mingliqiye.utils.json.converters
|
||||
|
||||
import com.google.gson.JsonParseException
|
||||
import com.mingliqiye.utils.exception.JsonParserException
|
||||
import com.mingliqiye.utils.json.api.type.JsonTypeReference
|
||||
import com.mingliqiye.utils.json.converters.base.AnnotationGetter
|
||||
import com.mingliqiye.utils.json.converters.base.BaseJsonConverter
|
||||
@@ -65,7 +65,7 @@ class NetworkEndpointJsonConverter : BaseJsonConverter<NetworkEndpoint> {
|
||||
annotationGetter: AnnotationGetter,
|
||||
): NetworkEndpoint? {
|
||||
return if (jsonReader.isNotNull) {
|
||||
if (!jsonReader.isString) throw JsonParseException("type item not string")
|
||||
if (!jsonReader.isString) throw JsonParserException("type item not string")
|
||||
NetworkEndpoint.of(jsonReader.getString())
|
||||
} else null
|
||||
}
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile UUIDJsonConverter.kt
|
||||
* LastUpdate 2026-11-17 20:01:08
|
||||
* LastUpdate 2026-11-18 00:02:04
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
package com.mingliqiye.utils.json.converters
|
||||
|
||||
import com.google.gson.JsonParseException
|
||||
import com.mingliqiye.utils.annotation.UUIDJsonFormat
|
||||
import com.mingliqiye.utils.base.BaseType
|
||||
import com.mingliqiye.utils.exception.JsonParserException
|
||||
import com.mingliqiye.utils.json.api.type.JsonTypeReference
|
||||
import com.mingliqiye.utils.json.converters.base.AnnotationGetter
|
||||
import com.mingliqiye.utils.json.converters.base.BaseJsonConverter
|
||||
@@ -79,7 +79,7 @@ class UUIDJsonConverter : BaseJsonConverter<UUID> {
|
||||
annotationGetter: AnnotationGetter,
|
||||
): UUID? {
|
||||
if (jsonReader.isNull) return null
|
||||
if (!jsonReader.isString) throw JsonParseException("type item not string")
|
||||
if (!jsonReader.isString) throw JsonParserException("type item not string")
|
||||
|
||||
val obj = jsonReader.getString()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user