2020
10-09
10-09
spring boot空属性赋值问题与aspect日志实现方法
空属性赋值问题MyBeanUtils类publicclassMyBeanUtils{publicstaticString[]getNullPropertyNames(Objectsource){BeanWrapperbeanWrapper=newBeanWrapperImpl(source);PropertyDescriptor[]pds=beanWrapper.getPropertyDescriptors();List<String>nullPropertyNames=newArrayList<>();for(PropertyDescriptorpd:pds){StringpropertyName=pd.getName();if(beanWrapper.getPropertyValue(propertyName...
继续阅读 >