public class LoggerPropertiesInterceptor extends java.lang.Object implements PropertiesInterceptor
Description:
Copyright (c) 2020
| 构造器和说明 |
|---|
LoggerPropertiesInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
convert(PropertyContext propertyContext)
对加载的属性值进行拦截处理,用处理后的值替换原来的值,常用于对加密数据的解密处理
|
public java.lang.Object convert(PropertyContext propertyContext)
PropertiesInterceptorconvert 在接口中 PropertiesInterceptorpropertyContext - 包含property和value两个属性
property 属性名称 如果value是复杂对象,property可能为空
value 属性值
property为空时,只需要处理value即可,并且复杂对象处理后的值必须设置回复杂对象
会忽略返回值