Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.20.2
-
None
-
Unknown
Description
In a Camel Spring Boot application MapStruct component is not autoconfigured automatically, as you can see from the reproducer, even if application.properties contains camel.component.mapstruct.mapper-package-name the component is not registered into the camel context, therefore the converter is not found and the following exception is raised:
NoTypeConversionAvailableException: No type converter available to convert from type: org.jboss.fuse.tnb.universal.component.mapstruct.Car to the required type: org.jboss.fuse.tnb.universal.component.mapstruct.CarDto
By uncommenting lines MyRouteBuilder:18 and MyRouteBuilder:19, the reproducer works, but I think that Camel Spring Boot should configure the component automatically.