You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/03/23 13:46:00 UTC

[jira] [Resolved] (CAMEL-19181) camel-springboot - mapstruct component is not autoconfigured automatically

     [ https://issues.apache.org/jira/browse/CAMEL-19181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19181.
---------------------------------
    Resolution: Fixed

> camel-springboot - mapstruct component is not autoconfigured automatically
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-19181
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19181
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.20.2
>            Reporter: Federico Mariani
>            Assignee: Luigi De Masi
>            Priority: Major
>             Fix For: 3.20.4, 3.21.0, 4.0-M3, 4.0
>
>         Attachments: mapstruct-test.zip
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)