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

@@ -4,7 +4,7 @@
<img src="https://img.shields.io/badge/SNAPSHOT-v3.7.0-%23ff3f59.svg" alt="Release" />
</a>
<a href="https://github.com/continew-org/continew-starter" title="ContiNew Starter" target="_blank">
<img src="https://img.shields.io/badge/ContiNew Starter-2.12.0-%236CB52D.svg" alt="ContiNew Starter" />
<img src="https://img.shields.io/badge/ContiNew Starter-2.12.1-%236CB52D.svg" alt="ContiNew Starter" />
</a>
<a href="https://spring.io/projects/spring-boot" title="Spring Boot" target="_blank">
<img src="https://img.shields.io/badge/Spring Boot-3.3.11-%236CB52D.svg?logo=Spring-Boot" alt="Spring Boot" />
@@ -213,13 +213,13 @@ public class DeptController extends BaseController<DeptService, DeptResp, DeptDe
## 核心技术栈
| 名称 | 版本 | 简介 |
| :----------------------------------------------------------- | :----------- | :----------------------------------------------------------- |
| 名称 | 版本 | 简介 |
| :----------------------------------------------------------- |:-------------| :----------------------------------------------------------- |
| <a href="https://vuejs.org/" target="_blank">Vue</a> | 3.5.4 | 渐进式 JavaScript 框架,易学易用,性能出色,适用场景丰富的 Web 前端框架。 |
| <a href="https://arco.design/vue/docs/start" target="_blank">Arco Design</a> | 2.57.0 | 字节跳动推出的前端 UI 框架,年轻化的色彩和组件设计。 |
| <a href="https://www.typescriptlang.org/zh/" target="_blank">TypeScript</a> | 5.0.4 | TypeScript 是微软开发的一个开源的编程语言,通过在 JavaScript 的基础上添加静态类型定义构建而成。 |
| <a href="https://vite.dev/" target="_blank">Vite</a> | 5.1.5 | 下一代的前端工具链,为开发提供极速响应。 |
| [ContiNew Starter](https://github.com/continew-org/continew-starter) | 2.12.0 | ContiNew Starter 包含了一系列经过企业实践优化的依赖包(如 MyBatis-Plus、SaToken可轻松集成到应用中为开发人员减少手动引入依赖及配置的麻烦为 Spring Boot Web 项目的灵活快速构建提供支持。 |
| [ContiNew Starter](https://github.com/continew-org/continew-starter) | 2.12.1 | ContiNew Starter 包含了一系列经过企业实践优化的依赖包(如 MyBatis-Plus、SaToken可轻松集成到应用中为开发人员减少手动引入依赖及配置的麻烦为 Spring Boot Web 项目的灵活快速构建提供支持。 |
| <a href="https://spring.io/projects/spring-boot" target="_blank">Spring Boot</a> | 3.3.11 | 简化 Spring 应用的初始搭建和开发过程基于“约定优于配置”的理念使开发人员不再需要定义样板化的配置。Spring Boot 3.0 开始,要求 Java 17 作为最低版本) |
| <a href="https://undertow.io/" target="_blank">Undertow</a> | 2.3.18.Final | 采用 Java 开发的灵活的高性能 Web 服务器,提供包括阻塞和基于 NIO 的非堵塞机制。 |
| <a href="https://sa-token.dev33.cn/" target="_blank">Sa-Token + JWT</a> | 1.42.0 | 轻量级 Java 权限认证框架,让鉴权变得简单、优雅。 |

View File

@@ -10,6 +10,9 @@
</parent>
<artifactId>continew-common</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>公共模块(存放公共工具类,公共配置等)</description>
<dependencies>

View File

@@ -53,7 +53,7 @@ import java.util.Objects;
public class GlobalExceptionHandler {
/**
* 自定义基类异常
* 自定义异常
*/
@ExceptionHandler(BaseException.class)
public R handleBaseException(BaseException e, HttpServletRequest request) {

View File

@@ -23,7 +23,7 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import top.continew.starter.core.util.ExceptionUtils;
import top.continew.starter.core.util.IpUtils;
import top.continew.starter.web.util.ServletUtils;
import top.continew.starter.core.util.ServletUtils;
import java.io.Serial;
import java.io.Serializable;

View File

@@ -10,6 +10,9 @@
</parent>
<artifactId>continew-extension-schedule-server</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>任务调度服务端</description>
<properties>

View File

@@ -9,6 +9,8 @@
<artifactId>continew-extension</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>扩展模块(存放其他扩展模块)</description>
<modules>

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;

View File

@@ -10,5 +10,8 @@
</parent>
<artifactId>continew-plugin-generator</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>代码生成器插件</description>
</project>

View File

@@ -62,7 +62,7 @@ import top.continew.starter.data.core.enums.DatabaseType;
import top.continew.starter.data.core.util.MetaUtils;
import top.continew.starter.extension.crud.model.query.PageQuery;
import top.continew.starter.extension.crud.model.resp.PageResp;
import top.continew.starter.web.util.FileUploadUtils;
import top.continew.starter.core.util.FileUploadUtils;
import javax.sql.DataSource;
import java.io.File;

View File

@@ -10,5 +10,8 @@
</parent>
<artifactId>continew-plugin-open</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>能力开放插件包括应用管理、API开放授权、API开发等</description>
</project>

View File

@@ -8,6 +8,9 @@
</parent>
<artifactId>continew-plugin-schedule</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>任务调度插件</description>
<dependencies>

View File

@@ -11,6 +11,8 @@
<artifactId>continew-plugin</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>插件模块(存放代码生成、任务调度等扩展模块)</description>
<modules>

View File

@@ -10,6 +10,9 @@
</parent>
<artifactId>continew-webapi</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>API 及打包部署模块</description>
<properties>

View File

@@ -5,5 +5,5 @@
\____|\___/ |_| |_| \__||_||_| \_| \___| \_/\_/ /_/ \_\\__,_||_| |_| |_||_||_| |_|
:: ${project.name} :: v${project.version}
:: ContiNew Starter :: v2.12.0
:: ContiNew Starter :: v2.12.1
:: Spring Boot :: v${spring-boot.version}

View File

@@ -55,6 +55,11 @@ spring:
allow-bean-definition-overriding: true
# 允许循环依赖
allow-circular-references: true
## Jackson 配置
jackson:
# 大数值序列化模式
# FLEXIBLE超过 JS 范围的数值转为 String 类型,否则保持原类型
big-number-serialize-mode: FLEXIBLE
--- ## 线程池配置(默认启用扩展配置,如未指定 corePoolSize、maxPoolSize 则根据机器配置自动设置)
spring.task:

View File

@@ -13,13 +13,15 @@
<parent>
<groupId>top.continew</groupId>
<artifactId>continew-starter</artifactId>
<version>2.12.0</version>
<version>2.12.1</version>
</parent>
<groupId>top.continew</groupId>
<artifactId>continew-admin</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>ContiNew AdminContinue New Admin持续迭代优化的前后端分离中后台管理系统框架开箱即用持续提供舒适的开发体验。</description>
<url>https://github.com/continew-org/continew-admin</url>