build: continew-starter 2.12.0 => 2.12.1

1.原 Web 工具类迁移到 core 模块
2.pom.xml 增加 name 和 packaging 标签
3.使用 WebSocketUtils.sendMessage 群发消息
4.Jackson 大数值序列化增加多模式支持
This commit is contained in:
2025-06-09 22:03:56 +08:00
parent 881974fbfa
commit 1ef54174b0
21 changed files with 46 additions and 14 deletions

View File

@@ -10,6 +10,9 @@
</parent>
<artifactId>continew-module-system</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>系统管理模块(存放系统管理相关业务功能,例如:部门管理、角色管理、用户管理等)</description>
<dependencies>

View File

@@ -38,7 +38,7 @@ import top.continew.admin.system.service.RoleService;
import top.continew.admin.system.service.UserService;
import top.continew.starter.core.validation.CheckUtils;
import top.continew.starter.core.validation.Validator;
import top.continew.starter.web.util.ServletUtils;
import top.continew.starter.core.util.ServletUtils;
import java.util.Set;
import java.util.concurrent.CompletableFuture;

View File

@@ -95,7 +95,7 @@ public class FileServiceImpl extends BaseServiceImpl<FileMapper, FileDO, FileRes
String extName = FileNameUtil.extName(file.getOriginalFilename());
List<String> allExtensions = FileTypeEnum.getAllExtensions();
CheckUtils.throwIf(!allExtensions.contains(extName), "不支持的文件类型,仅支持 {} 格式的文件", String
.join(StringConstants.CHINESE_COMMA, allExtensions));
.join(StringConstants.COMMA, allExtensions));
// 构建上传预处理对象
StorageDO storage = storageService.getByCode(storageCode);
CheckUtils.throwIf(DisEnableStatusEnum.DISABLE.equals(storage.getStatus()), "请先启用存储 [{}]", storage.getCode());

View File

@@ -114,7 +114,7 @@ public class MessageServiceImpl implements MessageService {
return;
}
// 发送消息给所有在线用户
// TODO WebSocketUtils.sendMessage("1");
WebSocketUtils.sendMessage("1");
}
@Override

View File

@@ -44,7 +44,7 @@ import top.continew.starter.core.util.ExceptionUtils;
import top.continew.starter.core.validation.CheckUtils;
import top.continew.starter.core.validation.ValidationUtils;
import top.continew.starter.extension.crud.service.BaseServiceImpl;
import top.continew.starter.web.util.SpringWebUtils;
import top.continew.starter.core.util.SpringWebUtils;
import java.util.Collections;
import java.util.List;

View File

@@ -85,7 +85,7 @@ import top.continew.starter.extension.crud.model.query.PageQuery;
import top.continew.starter.extension.crud.model.query.SortQuery;
import top.continew.starter.extension.crud.model.resp.PageResp;
import top.continew.starter.extension.crud.service.BaseServiceImpl;
import top.continew.starter.web.util.FileUploadUtils;
import top.continew.starter.core.util.FileUploadUtils;
import java.io.IOException;
import java.time.Duration;