RequestMapper und ResponseMapper sollten keine spring-beans sein
Es ist unerwartet/ungewollt, dass mapstruct mit einer "@Compontent" Annotation eine Spring-Component aus RequsetMapperImpl und ResponseMapperImpl macht.
Vermutlich ist das behoben, wenn ozgcloud-common-parent nicht mehr benutzt wird:
Da wird bspw. mapstruct.defaultComponentModel=spring konfiguriert.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<compilerArg>
-Amapstruct.defaultComponentModel=spring
</compilerArg>
...
Edited by Jan Zickermann