diff --git a/README.md b/README.md index 14fe400..e84a02c 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ **`v1.4.8` 版本已在 `JDK8` `JDK11` `JDK17` 环境下跑通所有单元测试样例** +**`v1.5.0` 版本产生了一些破坏性变更,请谨慎升级** + **Maven** ```xml @@ -48,6 +50,7 @@ public class Application { } ``` +**`v1.5.0` 版本产生了一些破坏性变更,请谨慎升级** diff --git a/build.gradle b/build.gradle index d04aab3..a9ad4b5 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ plugins { } group = 'com.houkunlin' -version = '1.4.11' +version = '1.5.0' description = """ 系统数据字典自动翻译成字典文本。可集合系统数据库中存储的用户数据字典,也可使用枚举做系统数据字典,主要用在返回数据给前端时自动把字典值翻译成字典文本信息; The system data dictionary is automatically translated into dictionary text. @@ -39,6 +39,9 @@ repositories { dependencies { compileOnly 'org.springframework.boot:spring-boot-starter-actuator' + compileOnly 'org.springframework.boot:spring-boot-starter-jdbc' +// compileOnly 'org.springframework.boot:spring-boot-starter-data-jpa' + compileOnly 'com.baomidou:mybatis-plus-boot-starter:3.5.3.1' testImplementation 'org.springframework.boot:spring-boot-starter-actuator' compileOnly 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-web' diff --git a/changelog.md b/changelog.md index acbb7f2..80ad56e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,14 @@ # 更改日志 +## 1.5.0 版本 + +产生了一些破坏性变更,请谨慎升级 +- refactor: 重构 Jackson 序列化器,抽出一个基类序列化器,把 DictText.Type 提取为 DictBoolType 对象 +- perf: 优化 Jackson 序列化器对于集合字典的处理 +- feat: 防止系统字典值重复加入缓存 +- feat: 系统字典类型完整信息单独存储一份,系统字典不允许通过事件进行更新字典数据 +- feat: 缓存到 Redis 改为存储到 Redis Hash + ## 1.4.11 版本 - feat(swagger): 增加 SpringDoc 的注解配置,把 Swagger/SpringDoc 的注解依赖范围从 传递依赖 改为仅在编译时有效 diff --git a/src/main/java/com/houkunlin/system/dict/starter/json/DictBoolType.java b/src/main/java/com/houkunlin/system/dict/starter/json/DictBoolType.java index b9ed36f..f58e3d5 100644 --- a/src/main/java/com/houkunlin/system/dict/starter/json/DictBoolType.java +++ b/src/main/java/com/houkunlin/system/dict/starter/json/DictBoolType.java @@ -6,7 +6,7 @@ * 数据字典配置类型 * * @author HouKunLin - * @since 1.4.12 + * @since 1.5.0 */ public enum DictBoolType { /** diff --git a/src/main/java/com/houkunlin/system/dict/starter/json/DictTextJsonSerializerBasic.java b/src/main/java/com/houkunlin/system/dict/starter/json/DictTextJsonSerializerBasic.java index f652030..af6be4b 100644 --- a/src/main/java/com/houkunlin/system/dict/starter/json/DictTextJsonSerializerBasic.java +++ b/src/main/java/com/houkunlin/system/dict/starter/json/DictTextJsonSerializerBasic.java @@ -18,7 +18,7 @@ * 一般情况下的场景,字典文本转换的基本功能代码 * * @author HouKunLin - * @since 1.4.12 + * @since 1.5.0 */ public abstract class DictTextJsonSerializerBasic extends JsonSerializer { private static final Logger logger = LoggerFactory.getLogger(DictTextJsonSerializerBasic.class); diff --git a/src/main/java/com/houkunlin/system/dict/starter/store/RedisDictStoreConfiguration.java b/src/main/java/com/houkunlin/system/dict/starter/store/RedisDictStoreConfiguration.java index 6f74fe6..f123782 100644 --- a/src/main/java/com/houkunlin/system/dict/starter/store/RedisDictStoreConfiguration.java +++ b/src/main/java/com/houkunlin/system/dict/starter/store/RedisDictStoreConfiguration.java @@ -7,7 +7,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.core.RedisTemplate; -import org.springframework.data.redis.core.StringRedisTemplate; /** * Redis 字典存储配置