diff --git a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java index 8a3f8d2..b7dc810 100644 --- a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java +++ b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java @@ -348,15 +348,14 @@ public class BeanProperty { */ private static List parseExtras(Class clazz, List origin) { List result = new ArrayList<>(); - MergedAnnotations annotations = MergedAnnotations.from(clazz); // 包含properties - if (annotations.isPresent(Properties.class)) { - Properties properties = annotations.get(Properties.class).synthesize(); + if (clazz.isAnnotationPresent(Properties.class)) { + Properties properties = clazz.getAnnotation(Properties.class); for (Property prop : properties.value()) { applyExtraProperty(result, origin, prop); } - } else if (annotations.isPresent(Property.class)) { - applyExtraProperty(result, origin, annotations.get(Property.class).synthesize()); + } else if (clazz.isAnnotationPresent(Property.class)) { + applyExtraProperty(result, origin, clazz.getAnnotation(Property.class)); } return result; }