Feat:用户模块启用异步仓库

This commit is contained in:
wangyu 2021-01-09 17:50:16 +08:00
parent 52659e1c5e
commit be17a84462
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class BeanProperty {
property.setType(BeanPropertyType.of(descriptor, beanClass)); property.setType(BeanPropertyType.of(descriptor, beanClass));
Class<?> clazz = descriptor.getPropertyType(); Class<?> clazz = descriptor.getPropertyType();
if (property.getType() == BeanPropertyType.OBJECT) { if (property.getType() == BeanPropertyType.OBJECT) {
Field field = FieldUtils.getDeclaredField(beanClass, property.getName()); Field field = FieldUtils.getDeclaredField(beanClass, property.getName(), true);
// 有子bean注解才处理 // 有子bean注解才处理
if (null != field && field.isAnnotationPresent(SubBean.class)) { if (null != field && field.isAnnotationPresent(SubBean.class)) {
property.setChildren(from(clazz)); property.setChildren(from(clazz));