Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19181

camel-springboot - mapstruct component is not autoconfigured automatically

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        1. mapstruct-test.zip
          14 kB
          Federico Mariani

        Activity

          People

            ldemasi Luigi De Masi
            Federico Mariani Federico Mariani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: