title: Mapstruct cannot find impl
body: <p>I am using mapstruct to transform a DTO into an object and vice versus and I am getting the following exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.rppjs.customer.online.portal.dtos.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1506)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1101)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
  at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:819)
  at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:725)
  </code></pre>
  
  <p>I can see that <code>UserMapper.impl</code> is being generated but still the above exception. My code is on github on this branch 42_RenameCodeBaseToCustomerOnlinePortal. The code is pretty simple and not many lines of code. The exception is generated as part of the <code>RegistrationEndpointIT.java</code>.</p>
  
  <p>Please could you take a look where I am going wrong? It is using a gradle wrapper.</p>
  
  <p>Additionally, I get the following exception when running Application.java:</p>
  
  <blockquote>
    <p>Description:</p>
    
    <p>Parameter 0 of constructor in
    com.rppjs.customer.online.portal.endpoints.RegistrationEndpoint
    required a bean of type
    'com.rppjs.customer.online.portal.dtos.mapper.UserMapper' that could
    not be found.</p>
    
    <p>Action:</p>
    
    <p>Consider defining a bean of type
    'com.rppjs.customer.online.portal.dtos.mapper.UserMapper' in your
    configuration.</p>
  </blockquote>
  
  <p>Please note, Application.java is a Spring boot application.</p>