public static Field getField(final Class<?> beanClass, final String name) throws SecurityException {
        final Field[] fields = beanClass.getDeclaredFields();
        return Arrays.stream(fields).filter(field -> Objects.equals(name, field.getName()))
                .findFirst().orElse(null);
    }
Get field.

@param beanClass the bean class
@param name      the name
@return the field
@throws SecurityException the security exception
shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java