title: Mapstruct: ignored MapperConfig
body: <p>I've two <code>MapperConfig</code>:</p>
  <pre class="lang-java prettyprint-override"><code>@MapperConfig(
      uses = {
          StringTypeMapper.class,
          ExtensionMapper.class
      }
  )
  public interface ElementMapperConfig extends GenericMapperConfig {
      
      @Mapping(target = &quot;id&quot;, source = &quot;idElement&quot;)
      @Mapping(target = &quot;extension&quot;, source = &quot;extension&quot;)
      Element mapElement(org.hl7.fhir.r4.model.Element fhir);
  
  }
  </code></pre>
  <p>And <code>GenericMapperConfig</code>:</p>
  <pre class="lang-java prettyprint-override"><code>@MapperConfig(
      componentModel = &quot;spring&quot;,
      injectionStrategy = InjectionStrategy.CONSTRUCTOR,
      nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS,
      nullValueMappingStrategy = NullValueMappingStrategy.RETURN_NULL
  )
  public interface GenericMapperConfig {
  
  }
  </code></pre>
  <p>As you can see, I'm using <code>spring</code> component model.</p>
  <p>Nevertheless, Mapper implementation is getting required Mapper using <code>Mappers.getMapper(...)</code>.</p>
  <p>As you can see, <code>ElementMapperConfig</code> extends <code>GenericMapperConfig</code>, but it seems that configuration from <code>GenericMapperConfig</code> is ignored.</p>
  <p>Generated Mapper example:</p>
  <pre class="lang-java prettyprint-override"><code>@Generated(
      value = &quot;org.mapstruct.ap.MappingProcessor&quot;
  )
  public class StringTypeMapperImpl implements StringTypeMapper {
  
      private final ExtensionMapper extensionMapper = Mappers.getMapper( ExtensionMapper.class );
  
  }
  </code></pre>
  <p><code>StringTypeMapper </code> is:</p>
  <pre class="lang-java prettyprint-override"><code>@Mapper(
      config = ElementMapperConfig.class
  )
  public interface StringTypeMapper {
  
      @InheritConfiguration(name = &quot;mapElement&quot;)
      StringType fhirToMpi(org.hl7.fhir.r4.model.StringType stringType);
  
  }
  </code></pre>
  <p>I don't quite figure out why <code>GenericMapperConfig</code> configuration is not populated, I mean, I don't get why <code>componentModel = &quot;spring&quot;</code> is ignored on <code>Mapper</code> implementation.</p>