feat: 主机配置动态初始化.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user