自定义类型转换-ConverterRegistry

    解决

    • 类型转换接口,通过实现这个接口,重写convert方法,以实现不同类型的对象转换
    • 自定义转换器
    • 注册转换器

    ConverterRegistry单例和对象模式