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

spring-boot with rest-dsl with api-doc registers multiple instances with multiple RouteBuilders

    Details

    • Estimated Complexity:
      Unknown

      Description

      Spring-boot + swagger throws exception when there is another RouteBuilder component present:

      org.apache.camel.spring.boot.CamelSpringBootInitializationException: org.apache.camel.FailedToStartRouteException: Failed to start route route4 because of Multiple consumers for the same endpoint is not allowed: Endpointhttp://0.0.0.0:10000/api-doc?httpMethodRestrict=GET

      I used the same example as CAMEL-9247 but added an empty RouteBuilder component (AnotherRouter.java)

      This makes it so we cannot have more than one RouteBuilder in our app.

      Example here:
      https://github.com/jmandawg/camel-spring-boot-swagger-problem

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jmandawg Jay mann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: