common_helper/src/main/java/com/xiongyingqi/util/AnnotationHelper.java
public static <T extends Annotation> T readAnnotationValueOnField(Field field, Class<T> annotationClass) {
        if (field.isAnnotationPresent(annotationClass)) {
            T t = field.getAnnotation(annotationClass);
            return t;
        } else {
            Method method = EntityHelper.findGetMethod(field);
            if (method.isAnnotationPresent(annotationClass)) {
                T t = method.getAnnotation(annotationClass);
                return t;
            }
            return null;
        }
    }
public static <T extends Annotation> T readAnnotationValueOnField(Field field, Class<T> annotationClass) {
        if (field.isAnnotationPresent(annotationClass)) {
            T t = field.getAnnotation(annotationClass);
            return t;
        } else {
            Method method = EntityHelper.findGetMethod(field);
            if (method.isAnnotationPresent(annotationClass)) {
                T t = method.getAnnotation(annotationClass);
                return t;
            }
            return null;
        }
    }
public static < T extends Annotation > T readAnnotationValueOnField ( Field field , Class < T > annotationClass ) { if ( field . isAnnotationPresent ( annotationClass ) ) { T t = field . getAnnotation ( annotationClass ) ; return t ; } else { Method method = EntityHelper . findGetMethod ( field ) ; if ( method . isAnnotationPresent ( annotationClass ) ) { T t = method . getAnnotation ( annotationClass ) ; return t ; } return null ; } }
读取field的注解值（包括get、set方法）
@param field
@param annotationClass
@param <T>
@return
读取field的注解值（包括get、set方法）