update 优化 统一补全代码注释

This commit is contained in:
疯狂的狮子Li
2026-03-13 19:36:14 +08:00
parent 916282ba68
commit 48992b574d
201 changed files with 2554 additions and 465 deletions

View File

@@ -28,6 +28,11 @@ import java.util.TimeZone;
@AutoConfiguration(before = JacksonAutoConfiguration.class)
public class JacksonConfig {
/**
* 注册 Jackson 序列化与反序列化模块。
*
* @return Jackson 模块
*/
@Bean
public SimpleModule registerJavaTimeModule() {
// 全局配置序列化返回 JSON 处理
@@ -43,6 +48,11 @@ public class JacksonConfig {
return module;
}
/**
* 初始化 Jackson 构建器默认配置。
*
* @return Jackson 构建器自定义器
*/
@Bean
public JsonMapperBuilderCustomizer jsonInitCustomizer() {
return builder -> {

View File

@@ -24,6 +24,11 @@ public class JsonUtils {
private static final JsonMapper JSON_MAPPER = SpringUtils.getBean(JsonMapper.class);
/**
* 获取全局 JsonMapper 实例。
*
* @return JsonMapper
*/
public static JsonMapper getJsonMapper() {
return JSON_MAPPER;
}