Annotation Interface SpringMapperConfig


@Target(TYPE) @Retention(SOURCE) public @interface SpringMapperConfig
Marks a class or interface as configuration source for the Spring extension. There can be only one annotated type in each compiled module.
  • Field Details

  • Element Details

    • converterRegistrationConfigurationClassName

      String converterRegistrationConfigurationClassName
      The class name for the generated Configuration class, which is performing auto-registration of converters/mappers to Spring's ConversionService.
      Returns:
      The class name for the generated Configuration.
      Default:
      "ConverterRegistrationConfiguration"
    • conversionServiceAdapterPackage

      String conversionServiceAdapterPackage
      The package name for the generated Adapter between the MapStruct mappers and Spring's ConversionService. If omitted or empty, the package name will be the same as the one for the annotated type.
      Returns:
      The package name for the generated Adapter.
      Default:
      ""
    • conversionServiceAdapterClassName

      String conversionServiceAdapterClassName
      The class name for the generated Adapter between the MapStruct mappers and Spring's ConversionService.
      Returns:
      The class name for the generated Adapter.
      Default:
      "ConversionServiceAdapter"
    • conversionServiceBeanName

      String conversionServiceBeanName
      The bean name for the Spring ConversionService to use.
      Returns:
      The bean name for the Spring ConversionService.
      Default:
      "conversionService"
    • lazyAnnotatedConversionServiceBean

      boolean lazyAnnotatedConversionServiceBean
      To set if the Lazy annotation will be added to the ConversionService's usage in the ConversionServiceAdapter. Defaults to true.
      Returns:
      true to add the Lazy annotation
      Default:
      true
    • generateConverterScan

      boolean generateConverterScan
      Indicates whether to generate a ConverterScan when using conversionServiceBeanName(). Has no effect when conversionServiceBeanName() is not set.
      Returns:
      true - Generate ConverterScan, false - otherwise
      Default:
      false
    • externalConversions

      ExternalConversion[] externalConversions
      Additional conversions which should be made available through the generated Adapter.
      Returns:
      Additional conversions which should be made available through the generated Adapter.
      Default:
      {}