chore: 工作区反编译与 Maven/文档/脚本同步到发布分支

- artifacts/decompiled 树与相关源码变更
- maven-cw-elevator-application 业务 docs 与 package-info
- scripts 下 formatter 校验与辅助脚本
- 其他子工程/接口与发布线一并纳入版本控制

Made-with: Cursor

Former-commit-id: e102e8cab64e575bcd23c9a66a598aa1892bb492
This commit is contained in:
反编译工作区
2026-04-25 09:35:35 +08:00
parent 1c28fcedfc
commit dee355b4a7
2000 changed files with 133077 additions and 169300 deletions
@@ -2,29 +2,16 @@ package cn.cloudwalk.cloud.sensitive;
import cn.cloudwalk.cloud.enums.SensitiveType;
public abstract class AbstractSensitiveHandler implements SensitiveHandler {
public String sensitive(String text, SensitiveType type) {
if (type.equals(strategy())) {
return sensitive(text);
}
return null;
}
public abstract SensitiveType strategy();
public abstract class AbstractSensitiveHandler
implements SensitiveHandler
{
public String sensitive(String text, SensitiveType type) {
if (type.equals(strategy())) {
return sensitive(text);
public abstract String sensitive(String paramString);
}
return null;
}
public abstract SensitiveType strategy();
public abstract String sensitive(String paramString);
}
@@ -11,46 +11,27 @@ import cn.cloudwalk.cloud.sensitive.handler.MobilePhoneSensitiveHandler;
import java.util.ArrayList;
import java.util.List;
public class CompositeSensitiveHandler implements SensitiveHandler {
private static List<SensitiveHandler> SENSITIVE_HANDLER_LIST = new ArrayList<>();
static {
SENSITIVE_HANDLER_LIST.add(new IdCardSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new EmailSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new BankCardSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new CnapsCodeSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new FixedPhoneSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new ChineseNameSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new MobilePhoneSensitiveHandler());
}
public String sensitive(String text, SensitiveType type) {
for (SensitiveHandler handler : SENSITIVE_HANDLER_LIST) {
String result = handler.sensitive(text, type);
if (result != null) {
return result;
}
}
public class CompositeSensitiveHandler
implements SensitiveHandler
{
private static List<SensitiveHandler> SENSITIVE_HANDLER_LIST = new ArrayList<>();
static {
SENSITIVE_HANDLER_LIST.add(new IdCardSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new EmailSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new BankCardSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new CnapsCodeSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new FixedPhoneSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new ChineseNameSensitiveHandler());
SENSITIVE_HANDLER_LIST.add(new MobilePhoneSensitiveHandler());
return text;
}
}
public String sensitive(String text, SensitiveType type) {
for (SensitiveHandler handler : SENSITIVE_HANDLER_LIST) {
String result = handler.sensitive(text, type);
if (result != null) {
return result;
}
}
return text;
}
}
@@ -12,71 +12,43 @@ import com.fasterxml.jackson.databind.ser.ContextualSerializer;
import java.io.IOException;
import java.util.Objects;
public class I8ndescribedSerialize extends JsonSerializer<String> implements ContextualSerializer {
private I8ndescribed i8ndescribed;
public I8ndescribedSerialize() {
}
public I8ndescribedSerialize(I8ndescribed i8ndescribed) {
this.i8ndescribed = i8ndescribed;
}
public JsonSerializer<?> createContextual(SerializerProvider prov, BeanProperty property)
throws JsonMappingException {
if (property != null) {
if (Objects.equals(property.getType().getRawClass(), String.class)) {
I8ndescribed cloudwalkI8N = (I8ndescribed) property.getAnnotation(I8ndescribed.class);
if (cloudwalkI8N == null) {
cloudwalkI8N = (I8ndescribed) property.getContextAnnotation(I8ndescribed.class);
}
if (cloudwalkI8N != null) {
return new I8ndescribedSerialize(cloudwalkI8N);
}
}
return prov.findValueSerializer(property.getType(), property);
}
return prov.findNullValueSerializer(property);
}
public class I8ndescribedSerialize
extends JsonSerializer<String>
implements ContextualSerializer
{
private I8ndescribed i8ndescribed;
public I8ndescribedSerialize() {}
public I8ndescribedSerialize(I8ndescribed i8ndescribed) {
this.i8ndescribed = i8ndescribed;
public void serialize(String value, JsonGenerator gen, SerializerProvider serializers)
throws IOException, JsonProcessingException {
if (this.i8ndescribed == null) {
gen.writeString(value);
} else {
gen.writeString(ApplicationContextUtils.getMessage(value));
}
}
}
public JsonSerializer<?> createContextual(SerializerProvider prov, BeanProperty property) throws JsonMappingException {
if (property != null) {
if (Objects.equals(property.getType().getRawClass(), String.class)) {
I8ndescribed cloudwalkI8N = (I8ndescribed)property.getAnnotation(I8ndescribed.class);
if (cloudwalkI8N == null) {
cloudwalkI8N = (I8ndescribed)property.getContextAnnotation(I8ndescribed.class);
}
if (cloudwalkI8N != null) {
return new I8ndescribedSerialize(cloudwalkI8N);
}
}
return prov.findValueSerializer(property.getType(), property);
}
return prov.findNullValueSerializer(property);
}
public void serialize(String value, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {
if (this.i8ndescribed == null) {
gen.writeString(value);
} else {
gen.writeString(ApplicationContextUtils.getMessage(value));
}
}
}
@@ -3,7 +3,5 @@ package cn.cloudwalk.cloud.sensitive;
import cn.cloudwalk.cloud.enums.SensitiveType;
public interface SensitiveHandler {
String sensitive(String paramString, SensitiveType paramSensitiveType);
String sensitive(String paramString, SensitiveType paramSensitiveType);
}
@@ -15,114 +15,70 @@ import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SensitiveInfoSerialize extends JsonSerializer<String> implements ContextualSerializer {
private static final Logger logger = LoggerFactory.getLogger(SensitiveInfoSerialize.class);
private static CompositeSensitiveHandler handler = new CompositeSensitiveHandler();
private SensitiveField sensitiveField;
public SensitiveInfoSerialize() {
}
public SensitiveInfoSerialize(SensitiveField sensitiveField) {
this.sensitiveField = sensitiveField;
}
public JsonSerializer<?> createContextual(SerializerProvider prov, BeanProperty property)
throws JsonMappingException {
if (property != null) {
if (Objects.equals(property.getType().getRawClass(), String.class)) {
SensitiveField sensitiveField = (SensitiveField) property.getAnnotation(SensitiveField.class);
if (sensitiveField == null) {
sensitiveField = (SensitiveField) property.getContextAnnotation(SensitiveField.class);
}
if (sensitiveField != null) {
return new SensitiveInfoSerialize(sensitiveField);
}
} else {
logger.debug("未对字段进行序列化,因为数据类型非String");
}
return prov.findValueSerializer(property.getType(), property);
}
return prov.findNullValueSerializer(property);
}
public class SensitiveInfoSerialize
extends JsonSerializer<String>
implements ContextualSerializer
{
/* 34 */ private static final Logger logger = LoggerFactory.getLogger(SensitiveInfoSerialize.class);
public void serialize(String value, JsonGenerator gen, SerializerProvider serializers)
throws IOException, JsonProcessingException {
SensitiveType type = this.sensitiveField.type();
if (!SensitiveType.NULL.equals(type)) {
String ret = handler.sensitive(value, type);
gen.writeString(ret);
} else {
gen.writeString(split(value));
}
}
private String split(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = text.length();
if (this.sensitiveField.prefix() + this.sensitiveField.suffix() >= length) {
return text;
}
String left = StringUtils.left(text, this.sensitiveField.prefix());
String right = StringUtils.right(text, this.sensitiveField.suffix());
/* 39 */ private static CompositeSensitiveHandler handler = new CompositeSensitiveHandler();
private SensitiveField sensitiveField;
public SensitiveInfoSerialize() {}
public SensitiveInfoSerialize(SensitiveField sensitiveField) {
/* 57 */ this.sensitiveField = sensitiveField;
length = this.sensitiveField.suffix() + this.sensitiveField.split();
return left.concat(StringUtils.leftPad(right, length, '*'));
}
}
public JsonSerializer<?> createContextual(SerializerProvider prov, BeanProperty property) throws JsonMappingException {
/* 64 */ if (property != null) {
/* 67 */ if (Objects.equals(property.getType().getRawClass(), String.class)) {
/* 70 */ SensitiveField sensitiveField = (SensitiveField)property.getAnnotation(SensitiveField.class);
/* 71 */ if (sensitiveField == null) {
/* 72 */ sensitiveField = (SensitiveField)property.getContextAnnotation(SensitiveField.class);
}
/* 76 */ if (sensitiveField != null) {
/* 77 */ return new SensitiveInfoSerialize(sensitiveField);
}
}
else {
/* 82 */ logger.debug("未对字段进行序列化,因为数据类型非String");
}
/* 85 */ return prov.findValueSerializer(property.getType(), property);
}
/* 88 */ return prov.findNullValueSerializer(property);
}
public void serialize(String value, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {
/* 95 */ SensitiveType type = this.sensitiveField.type();
/* 96 */ if (!SensitiveType.NULL.equals(type)) {
/* 97 */ String ret = handler.sensitive(value, type);
/* 98 */ gen.writeString(ret);
} else {
gen.writeString(split(value));
}
}
private String split(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = text.length();
if (this.sensitiveField.prefix() + this.sensitiveField.suffix() >= length) {
return text;
}
String left = StringUtils.left(text, this.sensitiveField.prefix());
String right = StringUtils.right(text, this.sensitiveField.suffix());
length = this.sensitiveField.suffix() + this.sensitiveField.split();
return left.concat(StringUtils.leftPad(right, length, '*'));
}
}
@@ -9,37 +9,19 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableConfigurationProperties({I8ndescribedProperties.class})
@ConditionalOnProperty(name = {"disable"}, havingValue = "true", matchIfMissing = false, prefix = "cloudwalk.i8ndescribed")
public class I8ndescribedConfiguration
{
@Autowired
private ObjectMapper objectMapper;
@EnableConfigurationProperties({ I8ndescribedProperties.class })
@ConditionalOnProperty(name = {
"disable" }, havingValue = "true", matchIfMissing = false, prefix = "cloudwalk.i8ndescribed")
public class I8ndescribedConfiguration {
@Autowired
private ObjectMapper objectMapper;
@Bean
public DisableI8ndescribedIntrospector disableI8ndescribedIntrospector() {
DisableI8ndescribedIntrospector intrspector = new DisableI8ndescribedIntrospector();
this.objectMapper.setAnnotationIntrospector((AnnotationIntrospector)intrspector);
@Bean
public DisableI8ndescribedIntrospector disableI8ndescribedIntrospector() {
DisableI8ndescribedIntrospector intrspector = new DisableI8ndescribedIntrospector();
this.objectMapper.setAnnotationIntrospector((AnnotationIntrospector) intrspector);
return intrspector;
return intrspector;
}
}
}
@@ -2,44 +2,18 @@ package cn.cloudwalk.cloud.sensitive.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "cloudwalk.sensitive")
public class I8ndescribedProperties
{
public static final String I8NDESCRIBED_PREFIX = "cloudwalk.i8ndescribed";
public static final String I8NDESCRIBED_DISABLE_VALUE = "true";
public static final String I8NDESCRIBED_KEY = "disable";
private String disable = "true";
public class I8ndescribedProperties {
public static final String I8NDESCRIBED_PREFIX = "cloudwalk.i8ndescribed";
public static final String I8NDESCRIBED_DISABLE_VALUE = "true";
public static final String I8NDESCRIBED_KEY = "disable";
private String disable = "true";
public String getDisable() {
return this.disable;
public String getDisable() {
return this.disable;
}
public void setDisable(String disable) {
this.disable = disable;
}
}
public void setDisable(String disable) {
this.disable = disable;
}
}
@@ -9,36 +9,19 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableConfigurationProperties({SensitiveInfoProperties.class})
@ConditionalOnProperty(name = {"disable"}, havingValue = "true", matchIfMissing = false, prefix = "cloudwalk.sensitive")
public class SensitiveInfoConfiguration
{
@Autowired
private ObjectMapper objectMapper;
@EnableConfigurationProperties({ SensitiveInfoProperties.class })
@ConditionalOnProperty(name = {
"disable" }, havingValue = "true", matchIfMissing = false, prefix = "cloudwalk.sensitive")
public class SensitiveInfoConfiguration {
@Autowired
private ObjectMapper objectMapper;
@Bean
public DisableSensitiveInfoIntrospector disableSensitiveInfoIntrospector() {
DisableSensitiveInfoIntrospector intrspector = new DisableSensitiveInfoIntrospector();
this.objectMapper.setAnnotationIntrospector((AnnotationIntrospector)intrspector);
@Bean
public DisableSensitiveInfoIntrospector disableSensitiveInfoIntrospector() {
DisableSensitiveInfoIntrospector intrspector = new DisableSensitiveInfoIntrospector();
this.objectMapper.setAnnotationIntrospector((AnnotationIntrospector) intrspector);
return intrspector;
return intrspector;
}
}
}
@@ -2,43 +2,18 @@ package cn.cloudwalk.cloud.sensitive.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "cloudwalk.sensitive")
public class SensitiveInfoProperties
{
public static final String FIELD_SENSITIVE_PREFIX = "cloudwalk.sensitive";
public static final String FIELD_SENSITIVE_DISABLE_VALUE = "true";
public static final String FIELD_SENSITIVE_KEY = "disable";
private String disable = "true";
public class SensitiveInfoProperties {
public static final String FIELD_SENSITIVE_PREFIX = "cloudwalk.sensitive";
public static final String FIELD_SENSITIVE_DISABLE_VALUE = "true";
public static final String FIELD_SENSITIVE_KEY = "disable";
private String disable = "true";
public String getDisable() {
return this.disable;
public String getDisable() {
return this.disable;
}
public void setDisable(String disable) {
this.disable = disable;
}
}
public void setDisable(String disable) {
this.disable = disable;
}
}
@@ -4,37 +4,23 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class BankCardSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.BANK_CARD;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 10) {
return text;
}
String left = StringUtils.left(text, 6);
String right = StringUtils.right(text, 4);
public class BankCardSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.BANK_CARD;
return left.concat(StringUtils.removeStart(StringUtils.leftPad(right, length, '*'), "******"));
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 10) {
return text;
}
String left = StringUtils.left(text, 6);
String right = StringUtils.right(text, 4);
return left.concat(StringUtils.removeStart(StringUtils.leftPad(right, length, '*'), "******"));
}
}
@@ -4,33 +4,19 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class ChineseNameSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.CHINESE_NAME;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
String w = StringUtils.left(text, 1);
public class ChineseNameSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.CHINESE_NAME;
return StringUtils.rightPad(w, (length > 4) ? 4 : length, '*');
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
String w = StringUtils.left(text, 1);
return StringUtils.rightPad(w, (length > 4) ? 4 : length, '*');
}
}
@@ -4,35 +4,21 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class CnapsCodeSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.CNAPS_CODE;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
public class CnapsCodeSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.CNAPS_CODE;
int length = StringUtils.length(text);
if (length < 2) {
return text;
}
String left = StringUtils.left(text, 2);
return StringUtils.rightPad(left, length, '*');
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 2) {
return text;
}
String left = StringUtils.left(text, 2);
return StringUtils.rightPad(left, length, '*');
}
}
@@ -4,35 +4,21 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class EmailSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.EMAIL;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
public class EmailSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.EMAIL;
int index = StringUtils.indexOf(text, 64);
if (index <= 1) {
return text;
}
return StringUtils.rightPad(StringUtils.left(text, 1), index, '*')
.concat(StringUtils.mid(text, index, StringUtils.length(text)));
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int index = StringUtils.indexOf(text, 64);
if (index <= 1) {
return text;
}
return StringUtils.rightPad(StringUtils.left(text, 1), index, '*')
.concat(StringUtils.mid(text, index, StringUtils.length(text)));
}
}
@@ -4,35 +4,21 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class FixedPhoneSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.FIXED_PHONE;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
public class FixedPhoneSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.FIXED_PHONE;
int length = StringUtils.length(text);
if (length <= 4) {
return text;
}
String last = StringUtils.right(text, 4);
return StringUtils.leftPad(last, length, '*');
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length <= 4) {
return text;
}
String last = StringUtils.right(text, 4);
return StringUtils.leftPad(last, length, '*');
}
}
@@ -4,53 +4,27 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class IdCardSensitiveHandler extends AbstractSensitiveHandler {
private static final int ID_CARD_LENGTH = 8;
private static final int PRE_CHAR_LENGTH = 3;
private static final int LST_CHAR_LENGTH = 4;
public SensitiveType strategy() {
return SensitiveType.ID_CARD;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 8) {
return text;
}
String pre = StringUtils.left(text, 3);
String num = StringUtils.right(text, 4);
public class IdCardSensitiveHandler
extends AbstractSensitiveHandler
{
private static final int ID_CARD_LENGTH = 8;
private static final int PRE_CHAR_LENGTH = 3;
private static final int LST_CHAR_LENGTH = 4;
public SensitiveType strategy() {
return SensitiveType.ID_CARD;
return pre.concat(StringUtils.leftPad(num, 8, '*'));
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 8) {
return text;
}
String pre = StringUtils.left(text, 3);
String num = StringUtils.right(text, 4);
return pre.concat(StringUtils.leftPad(num, 8, '*'));
}
}
@@ -4,37 +4,23 @@ import cn.cloudwalk.cloud.enums.SensitiveType;
import cn.cloudwalk.cloud.sensitive.AbstractSensitiveHandler;
import org.apache.commons.lang3.StringUtils;
public class MobilePhoneSensitiveHandler extends AbstractSensitiveHandler {
public SensitiveType strategy() {
return SensitiveType.MOBILE_PHONE;
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 7) {
return text;
}
String left = StringUtils.left(text, 3);
String right = StringUtils.right(text, 4);
public class MobilePhoneSensitiveHandler
extends AbstractSensitiveHandler
{
public SensitiveType strategy() {
return SensitiveType.MOBILE_PHONE;
return left.concat(StringUtils.leftPad(right, 8, '*'));
}
}
public String sensitive(String text) {
if (StringUtils.isBlank(text)) {
return "";
}
int length = StringUtils.length(text);
if (length < 7) {
return text;
}
String left = StringUtils.left(text, 3);
String right = StringUtils.right(text, 4);
return left.concat(StringUtils.leftPad(right, 8, '*'));
}
}
@@ -4,27 +4,13 @@ import cn.cloudwalk.cloud.annotation.I8ndescribed;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
import java.lang.annotation.Annotation;
public class DisableI8ndescribedIntrospector extends JacksonAnnotationIntrospector {
private static final long serialVersionUID = 5915688650237481024L;
public class DisableI8ndescribedIntrospector
extends JacksonAnnotationIntrospector
{
private static final long serialVersionUID = 5915688650237481024L;
public boolean isAnnotationBundle(Annotation ann) {
if (ann.annotationType().equals(I8ndescribed.class)) {
return false;
public boolean isAnnotationBundle(Annotation ann) {
if (ann.annotationType().equals(I8ndescribed.class)) {
return false;
}
return super.isAnnotationBundle(ann);
}
}
return super.isAnnotationBundle(ann);
}
}
@@ -4,27 +4,13 @@ import cn.cloudwalk.cloud.annotation.SensitiveField;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
import java.lang.annotation.Annotation;
public class DisableSensitiveInfoIntrospector extends JacksonAnnotationIntrospector {
private static final long serialVersionUID = 5915688650237481024L;
public class DisableSensitiveInfoIntrospector
extends JacksonAnnotationIntrospector
{
private static final long serialVersionUID = 5915688650237481024L;
public boolean isAnnotationBundle(Annotation ann) {
if (ann.annotationType().equals(SensitiveField.class)) {
return false;
public boolean isAnnotationBundle(Annotation ann) {
if (ann.annotationType().equals(SensitiveField.class)) {
return false;
}
return super.isAnnotationBundle(ann);
}
}
return super.isAnnotationBundle(ann);
}
}