feat: 主机配置动态初始化.

This commit is contained in:
lijiahangmax
2023-12-24 22:53:23 +08:00
parent 03c87b28d4
commit 5cf70595c0
11 changed files with 82 additions and 41 deletions

View File

@@ -19,7 +19,7 @@ public interface GenericsDataDefinition {
*
* @return class
*/
Class<? extends GenericsDataModel> getType();
Class<? extends GenericsDataModel> getModel();
/**
* 获取数据处理策略
@@ -49,7 +49,7 @@ public interface GenericsDataDefinition {
*/
@SuppressWarnings("unchecked")
default <Model extends GenericsDataModel> Model parse(String json) {
return (Model) JSON.parseObject(json, this.getType());
return (Model) JSON.parseObject(json, this.getModel());
}

View File

@@ -30,7 +30,7 @@ public @interface OperatorLog {
* - {@link org.springframework.web.bind.annotation.PathVariable}
* <p>
* 使用 @IgnoreParameter 可以忽略参数记录 {@link IgnoreParameter}
* 如果只需要忽略某个字段可以使用 {@code @Desensitize(toEmpty = true)} 标注
* 如果只需要忽略对象中的某个字段可以使用 {@code @Desensitize(toEmpty = true)} 标注
*/
boolean parameter() default true;

View File

@@ -10,7 +10,11 @@ import java.lang.annotation.*;
* FastJson / Jackson 脱敏配置元注解
* <p>
* Jackson 标注在字段上则标记该字段执行 http 序列化 (返回 VO)时脱敏 (http-message-converts 用的是 jackson)
* <p>
* FastJson 需要组合 {@link DesensitizeObject} 一起使用
* JSON.toJSONString 时需要使用过滤器 {@link com.orion.ops.framework.desensitize.core.filter.DesensitizeValueFilter}
* - 全局日志打印 {@see LogPrinterInterceptor}
* - 操作日志切面 {@see OperatorLogAspect}
*
* @author Jiahang Li
* @version 1.0.0