code: public static void copyProperty(Object bean, String name, Object value)
              throws Excel4JException {
  
          if (null == name || null == value)
              return;
          Field field = matchClassField(bean.getClass(), name);
          if (null == field)
              return;
          Method method;
          try {
              method = getterOrSetter(bean.getClass(), name, FieldAccessType.SETTER);
  
              if (value.getClass() == field.getType()) {
                  method.invoke(bean, value);
              } else {
                  method.invoke(bean, str2TargetClass(value.toString(), field.getType()));
              }
          } catch (IntrospectionException | IllegalAccessException | InvocationTargetException e) {
              throw new Excel4JException(e);
          }
  
      }
docs: 根据属性名与属性类型获取字段内容
  
  @param bean  对象
  @param name  字段名
  @param value 字段类型