Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.16.1
-
Component/s: camel-spring-boot, camel-swagger
-
Labels:None
-
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