diff --git a/README.md b/README.md index 1bf38c52..b0e0d440 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Release -ContiNew Starter +ContiNew Starter Spring Boot @@ -213,13 +213,13 @@ public class DeptController extends BaseControllerVue | 3.5.4 | 渐进式 JavaScript 框架,易学易用,性能出色,适用场景丰富的 Web 前端框架。 | | Arco Design | 2.57.0 | 字节跳动推出的前端 UI 框架,年轻化的色彩和组件设计。 | | TypeScript | 5.0.4 | TypeScript 是微软开发的一个开源的编程语言,通过在 JavaScript 的基础上添加静态类型定义构建而成。 | | Vite | 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 项目的灵活快速构建提供支持。 | | Spring Boot | 3.3.11 | 简化 Spring 应用的初始搭建和开发过程,基于“约定优于配置”的理念,使开发人员不再需要定义样板化的配置。(Spring Boot 3.0 开始,要求 Java 17 作为最低版本) | | Undertow | 2.3.18.Final | 采用 Java 开发的灵活的高性能 Web 服务器,提供包括阻塞和基于 NIO 的非堵塞机制。 | | Sa-Token + JWT | 1.42.0 | 轻量级 Java 权限认证框架,让鉴权变得简单、优雅。 | diff --git a/continew-common/pom.xml b/continew-common/pom.xml index 8df67502..716b7a33 100644 --- a/continew-common/pom.xml +++ b/continew-common/pom.xml @@ -10,6 +10,9 @@ continew-common + jar + + ${project.artifactId} 公共模块(存放公共工具类,公共配置等) diff --git a/continew-common/src/main/java/top/continew/admin/common/config/exception/GlobalExceptionHandler.java b/continew-common/src/main/java/top/continew/admin/common/config/exception/GlobalExceptionHandler.java index d3d15026..b95022a7 100644 --- a/continew-common/src/main/java/top/continew/admin/common/config/exception/GlobalExceptionHandler.java +++ b/continew-common/src/main/java/top/continew/admin/common/config/exception/GlobalExceptionHandler.java @@ -53,7 +53,7 @@ import java.util.Objects; public class GlobalExceptionHandler { /** - * 自定义基类异常 + * 自定义异常 */ @ExceptionHandler(BaseException.class) public R handleBaseException(BaseException e, HttpServletRequest request) { diff --git a/continew-common/src/main/java/top/continew/admin/common/context/UserExtraContext.java b/continew-common/src/main/java/top/continew/admin/common/context/UserExtraContext.java index 3271a774..4b6696a1 100644 --- a/continew-common/src/main/java/top/continew/admin/common/context/UserExtraContext.java +++ b/continew-common/src/main/java/top/continew/admin/common/context/UserExtraContext.java @@ -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; diff --git a/continew-extension/continew-extension-schedule-server/pom.xml b/continew-extension/continew-extension-schedule-server/pom.xml index 372ef7b6..d699dd61 100644 --- a/continew-extension/continew-extension-schedule-server/pom.xml +++ b/continew-extension/continew-extension-schedule-server/pom.xml @@ -10,6 +10,9 @@ continew-extension-schedule-server + jar + + ${project.artifactId} 任务调度服务端 diff --git a/continew-extension/pom.xml b/continew-extension/pom.xml index 2761452a..adff6312 100644 --- a/continew-extension/pom.xml +++ b/continew-extension/pom.xml @@ -9,6 +9,8 @@ continew-extension pom + + ${project.artifactId} 扩展模块(存放其他扩展模块) diff --git a/continew-module-system/pom.xml b/continew-module-system/pom.xml index a650ee15..3080c0ca 100644 --- a/continew-module-system/pom.xml +++ b/continew-module-system/pom.xml @@ -10,6 +10,9 @@ continew-module-system + jar + + ${project.artifactId} 系统管理模块(存放系统管理相关业务功能,例如:部门管理、角色管理、用户管理等) diff --git a/continew-module-system/src/main/java/top/continew/admin/auth/AbstractLoginHandler.java b/continew-module-system/src/main/java/top/continew/admin/auth/AbstractLoginHandler.java index eb5d68ee..03eb9f87 100644 --- a/continew-module-system/src/main/java/top/continew/admin/auth/AbstractLoginHandler.java +++ b/continew-module-system/src/main/java/top/continew/admin/auth/AbstractLoginHandler.java @@ -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; diff --git a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/FileServiceImpl.java b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/FileServiceImpl.java index a1417693..33104a05 100644 --- a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/FileServiceImpl.java +++ b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/FileServiceImpl.java @@ -95,7 +95,7 @@ public class FileServiceImpl extends BaseServiceImpl 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()); diff --git a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/MessageServiceImpl.java b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/MessageServiceImpl.java index 5279d69d..894d01b4 100644 --- a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/MessageServiceImpl.java +++ b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/MessageServiceImpl.java @@ -114,7 +114,7 @@ public class MessageServiceImpl implements MessageService { return; } // 发送消息给所有在线用户 - // TODO WebSocketUtils.sendMessage("1"); + WebSocketUtils.sendMessage("1"); } @Override diff --git a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/StorageServiceImpl.java b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/StorageServiceImpl.java index 93cb113d..d3c99450 100644 --- a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/StorageServiceImpl.java +++ b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/StorageServiceImpl.java @@ -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; diff --git a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/UserServiceImpl.java b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/UserServiceImpl.java index 51395c79..5c962aec 100644 --- a/continew-module-system/src/main/java/top/continew/admin/system/service/impl/UserServiceImpl.java +++ b/continew-module-system/src/main/java/top/continew/admin/system/service/impl/UserServiceImpl.java @@ -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; diff --git a/continew-plugin/continew-plugin-generator/pom.xml b/continew-plugin/continew-plugin-generator/pom.xml index 73e94fdf..5d21435f 100644 --- a/continew-plugin/continew-plugin-generator/pom.xml +++ b/continew-plugin/continew-plugin-generator/pom.xml @@ -10,5 +10,8 @@ continew-plugin-generator + jar + + ${project.artifactId} 代码生成器插件 \ No newline at end of file diff --git a/continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/service/impl/GeneratorServiceImpl.java b/continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/service/impl/GeneratorServiceImpl.java index 3a308f16..10f1f13d 100644 --- a/continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/service/impl/GeneratorServiceImpl.java +++ b/continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/service/impl/GeneratorServiceImpl.java @@ -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; diff --git a/continew-plugin/continew-plugin-open/pom.xml b/continew-plugin/continew-plugin-open/pom.xml index 7a66db93..e5cd7185 100644 --- a/continew-plugin/continew-plugin-open/pom.xml +++ b/continew-plugin/continew-plugin-open/pom.xml @@ -10,5 +10,8 @@ continew-plugin-open + jar + + ${project.artifactId} 能力开放插件(包括应用管理、API开放授权、API开发等) \ No newline at end of file diff --git a/continew-plugin/continew-plugin-schedule/pom.xml b/continew-plugin/continew-plugin-schedule/pom.xml index a6b62d5f..8a376692 100644 --- a/continew-plugin/continew-plugin-schedule/pom.xml +++ b/continew-plugin/continew-plugin-schedule/pom.xml @@ -8,6 +8,9 @@ continew-plugin-schedule + jar + + ${project.artifactId} 任务调度插件 diff --git a/continew-plugin/pom.xml b/continew-plugin/pom.xml index b40767bb..03d9224f 100644 --- a/continew-plugin/pom.xml +++ b/continew-plugin/pom.xml @@ -11,6 +11,8 @@ continew-plugin pom + + ${project.artifactId} 插件模块(存放代码生成、任务调度等扩展模块) diff --git a/continew-webapi/pom.xml b/continew-webapi/pom.xml index 6b2d5f8d..0463321c 100644 --- a/continew-webapi/pom.xml +++ b/continew-webapi/pom.xml @@ -10,6 +10,9 @@ continew-webapi + jar + + ${project.artifactId} API 及打包部署模块 diff --git a/continew-webapi/src/main/resources/banner.txt b/continew-webapi/src/main/resources/banner.txt index e7674c03..cf05cf87 100644 --- a/continew-webapi/src/main/resources/banner.txt +++ b/continew-webapi/src/main/resources/banner.txt @@ -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} diff --git a/continew-webapi/src/main/resources/config/application.yml b/continew-webapi/src/main/resources/config/application.yml index 69bc188d..3ed7c0da 100644 --- a/continew-webapi/src/main/resources/config/application.yml +++ b/continew-webapi/src/main/resources/config/application.yml @@ -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: diff --git a/pom.xml b/pom.xml index 4983c3f1..ec07a4a5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,13 +13,15 @@ top.continew continew-starter - 2.12.0 + 2.12.1 top.continew continew-admin ${revision} pom + + ${project.artifactId} ContiNew Admin(Continue New Admin)持续迭代优化的前后端分离中后台管理系统框架,开箱即用,持续提供舒适的开发体验。 https://github.com/continew-org/continew-admin