mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 22:57:17 +08:00 
			
		
		
		
	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:
		| @@ -4,7 +4,7 @@ | |||||||
| <img src="https://img.shields.io/badge/SNAPSHOT-v3.7.0-%23ff3f59.svg" alt="Release" /> | <img src="https://img.shields.io/badge/SNAPSHOT-v3.7.0-%23ff3f59.svg" alt="Release" /> | ||||||
| </a> | </a> | ||||||
| <a href="https://github.com/continew-org/continew-starter" title="ContiNew Starter" target="_blank"> | <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> | ||||||
| <a href="https://spring.io/projects/spring-boot" title="Spring Boot" target="_blank"> | <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" /> | <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://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://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://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        | 下一代的前端工具链,为开发提供极速响应。                     | | | <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://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://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 权限认证框架,让鉴权变得简单、优雅。             | | | <a href="https://sa-token.dev33.cn/" target="_blank">Sa-Token + JWT</a> | 1.42.0       | 轻量级 Java 权限认证框架,让鉴权变得简单、优雅。             | | ||||||
|   | |||||||
| @@ -10,6 +10,9 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-common</artifactId> |     <artifactId>continew-common</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>公共模块(存放公共工具类,公共配置等)</description> |     <description>公共模块(存放公共工具类,公共配置等)</description> | ||||||
|  |  | ||||||
|     <dependencies> |     <dependencies> | ||||||
|   | |||||||
| @@ -53,7 +53,7 @@ import java.util.Objects; | |||||||
| public class GlobalExceptionHandler { | public class GlobalExceptionHandler { | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 自定义基类异常 |      * 自定义异常 | ||||||
|      */ |      */ | ||||||
|     @ExceptionHandler(BaseException.class) |     @ExceptionHandler(BaseException.class) | ||||||
|     public R handleBaseException(BaseException e, HttpServletRequest request) { |     public R handleBaseException(BaseException e, HttpServletRequest request) { | ||||||
|   | |||||||
| @@ -23,7 +23,7 @@ import lombok.Data; | |||||||
| import lombok.NoArgsConstructor; | import lombok.NoArgsConstructor; | ||||||
| import top.continew.starter.core.util.ExceptionUtils; | import top.continew.starter.core.util.ExceptionUtils; | ||||||
| import top.continew.starter.core.util.IpUtils; | 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.Serial; | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|   | |||||||
| @@ -10,6 +10,9 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-extension-schedule-server</artifactId> |     <artifactId>continew-extension-schedule-server</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>任务调度服务端</description> |     <description>任务调度服务端</description> | ||||||
|  |  | ||||||
|     <properties> |     <properties> | ||||||
|   | |||||||
| @@ -9,6 +9,8 @@ | |||||||
|  |  | ||||||
|     <artifactId>continew-extension</artifactId> |     <artifactId>continew-extension</artifactId> | ||||||
|     <packaging>pom</packaging> |     <packaging>pom</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>扩展模块(存放其他扩展模块)</description> |     <description>扩展模块(存放其他扩展模块)</description> | ||||||
|  |  | ||||||
|     <modules> |     <modules> | ||||||
|   | |||||||
| @@ -10,6 +10,9 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-module-system</artifactId> |     <artifactId>continew-module-system</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>系统管理模块(存放系统管理相关业务功能,例如:部门管理、角色管理、用户管理等)</description> |     <description>系统管理模块(存放系统管理相关业务功能,例如:部门管理、角色管理、用户管理等)</description> | ||||||
|  |  | ||||||
|     <dependencies> |     <dependencies> | ||||||
|   | |||||||
| @@ -38,7 +38,7 @@ import top.continew.admin.system.service.RoleService; | |||||||
| import top.continew.admin.system.service.UserService; | import top.continew.admin.system.service.UserService; | ||||||
| import top.continew.starter.core.validation.CheckUtils; | import top.continew.starter.core.validation.CheckUtils; | ||||||
| import top.continew.starter.core.validation.Validator; | 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.Set; | ||||||
| import java.util.concurrent.CompletableFuture; | import java.util.concurrent.CompletableFuture; | ||||||
|   | |||||||
| @@ -95,7 +95,7 @@ public class FileServiceImpl extends BaseServiceImpl<FileMapper, FileDO, FileRes | |||||||
|         String extName = FileNameUtil.extName(file.getOriginalFilename()); |         String extName = FileNameUtil.extName(file.getOriginalFilename()); | ||||||
|         List<String> allExtensions = FileTypeEnum.getAllExtensions(); |         List<String> allExtensions = FileTypeEnum.getAllExtensions(); | ||||||
|         CheckUtils.throwIf(!allExtensions.contains(extName), "不支持的文件类型,仅支持 {} 格式的文件", String |         CheckUtils.throwIf(!allExtensions.contains(extName), "不支持的文件类型,仅支持 {} 格式的文件", String | ||||||
|             .join(StringConstants.CHINESE_COMMA, allExtensions)); |             .join(StringConstants.COMMA, allExtensions)); | ||||||
|         // 构建上传预处理对象 |         // 构建上传预处理对象 | ||||||
|         StorageDO storage = storageService.getByCode(storageCode); |         StorageDO storage = storageService.getByCode(storageCode); | ||||||
|         CheckUtils.throwIf(DisEnableStatusEnum.DISABLE.equals(storage.getStatus()), "请先启用存储 [{}]", storage.getCode()); |         CheckUtils.throwIf(DisEnableStatusEnum.DISABLE.equals(storage.getStatus()), "请先启用存储 [{}]", storage.getCode()); | ||||||
|   | |||||||
| @@ -114,7 +114,7 @@ public class MessageServiceImpl implements MessageService { | |||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         // 发送消息给所有在线用户 |         // 发送消息给所有在线用户 | ||||||
|         // TODO WebSocketUtils.sendMessage("1"); |         WebSocketUtils.sendMessage("1"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
| @@ -44,7 +44,7 @@ import top.continew.starter.core.util.ExceptionUtils; | |||||||
| import top.continew.starter.core.validation.CheckUtils; | import top.continew.starter.core.validation.CheckUtils; | ||||||
| import top.continew.starter.core.validation.ValidationUtils; | import top.continew.starter.core.validation.ValidationUtils; | ||||||
| import top.continew.starter.extension.crud.service.BaseServiceImpl; | 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.Collections; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|   | |||||||
| @@ -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.query.SortQuery; | ||||||
| import top.continew.starter.extension.crud.model.resp.PageResp; | import top.continew.starter.extension.crud.model.resp.PageResp; | ||||||
| import top.continew.starter.extension.crud.service.BaseServiceImpl; | 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.io.IOException; | ||||||
| import java.time.Duration; | import java.time.Duration; | ||||||
|   | |||||||
| @@ -10,5 +10,8 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-plugin-generator</artifactId> |     <artifactId>continew-plugin-generator</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>代码生成器插件</description> |     <description>代码生成器插件</description> | ||||||
| </project> | </project> | ||||||
| @@ -62,7 +62,7 @@ import top.continew.starter.data.core.enums.DatabaseType; | |||||||
| import top.continew.starter.data.core.util.MetaUtils; | import top.continew.starter.data.core.util.MetaUtils; | ||||||
| import top.continew.starter.extension.crud.model.query.PageQuery; | import top.continew.starter.extension.crud.model.query.PageQuery; | ||||||
| import top.continew.starter.extension.crud.model.resp.PageResp; | 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 javax.sql.DataSource; | ||||||
| import java.io.File; | import java.io.File; | ||||||
|   | |||||||
| @@ -10,5 +10,8 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-plugin-open</artifactId> |     <artifactId>continew-plugin-open</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>能力开放插件(包括应用管理、API开放授权、API开发等)</description> |     <description>能力开放插件(包括应用管理、API开放授权、API开发等)</description> | ||||||
| </project> | </project> | ||||||
| @@ -8,6 +8,9 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-plugin-schedule</artifactId> |     <artifactId>continew-plugin-schedule</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>任务调度插件</description> |     <description>任务调度插件</description> | ||||||
|  |  | ||||||
|     <dependencies> |     <dependencies> | ||||||
|   | |||||||
| @@ -11,6 +11,8 @@ | |||||||
|  |  | ||||||
|     <artifactId>continew-plugin</artifactId> |     <artifactId>continew-plugin</artifactId> | ||||||
|     <packaging>pom</packaging> |     <packaging>pom</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>插件模块(存放代码生成、任务调度等扩展模块)</description> |     <description>插件模块(存放代码生成、任务调度等扩展模块)</description> | ||||||
|  |  | ||||||
|     <modules> |     <modules> | ||||||
|   | |||||||
| @@ -10,6 +10,9 @@ | |||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <artifactId>continew-webapi</artifactId> |     <artifactId>continew-webapi</artifactId> | ||||||
|  |     <packaging>jar</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>API 及打包部署模块</description> |     <description>API 及打包部署模块</description> | ||||||
|  |  | ||||||
|     <properties> |     <properties> | ||||||
|   | |||||||
| @@ -5,5 +5,5 @@ | |||||||
|   \____|\___/ |_| |_| \__||_||_| \_| \___|  \_/\_/       /_/   \_\\__,_||_| |_| |_||_||_| |_| |   \____|\___/ |_| |_| \__||_||_| \_| \___|  \_/\_/       /_/   \_\\__,_||_| |_| |_||_||_| |_| | ||||||
|  |  | ||||||
|  :: ${project.name}   ::                                               v${project.version} |  :: ${project.name}   ::                                               v${project.version} | ||||||
|  :: ContiNew Starter ::                                               v2.12.0 |  :: ContiNew Starter ::                                               v2.12.1 | ||||||
|  :: Spring Boot      ::                                               v${spring-boot.version} |  :: Spring Boot      ::                                               v${spring-boot.version} | ||||||
|   | |||||||
| @@ -55,6 +55,11 @@ spring: | |||||||
|     allow-bean-definition-overriding: true |     allow-bean-definition-overriding: true | ||||||
|     # 允许循环依赖 |     # 允许循环依赖 | ||||||
|     allow-circular-references: true |     allow-circular-references: true | ||||||
|  |   ## Jackson 配置 | ||||||
|  |   jackson: | ||||||
|  |     # 大数值序列化模式 | ||||||
|  |     # FLEXIBLE:超过 JS 范围的数值转为 String 类型,否则保持原类型 | ||||||
|  |     big-number-serialize-mode: FLEXIBLE | ||||||
|  |  | ||||||
| --- ## 线程池配置(默认启用扩展配置,如未指定 corePoolSize、maxPoolSize 则根据机器配置自动设置) | --- ## 线程池配置(默认启用扩展配置,如未指定 corePoolSize、maxPoolSize 则根据机器配置自动设置) | ||||||
| spring.task: | spring.task: | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -13,13 +13,15 @@ | |||||||
|     <parent> |     <parent> | ||||||
|         <groupId>top.continew</groupId> |         <groupId>top.continew</groupId> | ||||||
|         <artifactId>continew-starter</artifactId> |         <artifactId>continew-starter</artifactId> | ||||||
|         <version>2.12.0</version> |         <version>2.12.1</version> | ||||||
|     </parent> |     </parent> | ||||||
|  |  | ||||||
|     <groupId>top.continew</groupId> |     <groupId>top.continew</groupId> | ||||||
|     <artifactId>continew-admin</artifactId> |     <artifactId>continew-admin</artifactId> | ||||||
|     <version>${revision}</version> |     <version>${revision}</version> | ||||||
|     <packaging>pom</packaging> |     <packaging>pom</packaging> | ||||||
|  |  | ||||||
|  |     <name>${project.artifactId}</name> | ||||||
|     <description>ContiNew Admin(Continue New Admin)持续迭代优化的前后端分离中后台管理系统框架,开箱即用,持续提供舒适的开发体验。</description> |     <description>ContiNew Admin(Continue New Admin)持续迭代优化的前后端分离中后台管理系统框架,开箱即用,持续提供舒适的开发体验。</description> | ||||||
|     <url>https://github.com/continew-org/continew-admin</url> |     <url>https://github.com/continew-org/continew-admin</url> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user