Annotation Type 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.
    • Element Detail

      • conversionServiceAdapterPackage

        java.lang.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

        java.lang.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

        java.lang.String conversionServiceBeanName
        The bean name for the Spring ConversionService to use.
        Returns:
        The bean name for the Spring ConversionService.
        Default:
        ""
      • 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
      • 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:
        {}