类 ByFieldNameBeanConverter<S,​D>

  • 所有已实现的接口:
    org.springframework.core.convert.converter.Converter<S,​D>

    public class ByFieldNameBeanConverter<S,​D>
    extends Object
    implements org.springframework.core.convert.converter.Converter<S,​D>
    • 构造器详细资料

      • ByFieldNameBeanConverter

        public ByFieldNameBeanConverter​(Class<S> srcClass,
                                        Class<D> destClass,
                                        ByFieldNameBeanConverter.Configuration configuration)
                                 throws NoSuchMethodException
        Construct a ByFieldNameBeanConverter
        参数:
        srcClass - the type of the source Java bean to convert from
        destClass - the type of the target Java bean to convert to
        configuration - specifies how to get / set the fields of the Java bean
        抛出:
        NoSuchMethodException - if the target Java bean has no accessible default constructor
    • 方法详细资料

      • convert

        public D convert​(S src)
        指定者:
        convert 在接口中 org.springframework.core.convert.converter.Converter<S,​D>