## 接口的使用
org.springframework.core.convert.converter.GenericConverter

- 使用GenericConverter的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.convert.converter | SPI to implement Converters for the type conversion system.
  org.springframework.core.convert.support | Default implementation of the type conversion system.

- - ### org.springframework.core.convert.converter中GenericConverter的使用

    org.springframework.core.convert.converter中GenericConverter的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `ConditionalGenericConverter` A `GenericConverter` that may conditionally execute based on attributes of the `source` and `target` `TypeDescriptor`.

    参数类型为GenericConverter的org.springframework.core.convert.converter中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ConverterRegistry.`addConverter(GenericConverter converter)` Add a generic converter to this registry.

  - ### org.springframework.core.convert.support中GenericConverter的使用

    返回GenericConverter的org.springframework.core.convert.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected GenericConverter` | GenericConversionService.`getConverter(TypeDescriptor sourceType, TypeDescriptor targetType)` Hook method to lookup the converter for a given sourceType/targetType pair.
    `protected GenericConverter` | GenericConversionService.`getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType)` Return the default converter if no converter is found for the given sourceType/targetType pair.

    参数类型为GenericConverter的org.springframework.core.convert.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | GenericConversionService.`addConverter(GenericConverter converter)`