SpringBoot does not scan CamelContext with @Component
Issue
By moving Custom RouteBuilder class to other package, SpringBoot does not scan it anymore.
before
.
└── com
└── redhat
└── fuse
└── boosters
└── cb
├── Application.java
├── CamelRouter.java
├── Greetings.java
├── GreetingsServiceImpl.java
├── GreetingsService.java
└── IndexRootMapper.java
after
├── com
├── sample
│ └── fuse
│ ├── CamelRouter.java
│ ├── Greetings.java
│ ├── GreetingsServiceImpl.java
│ ├── GreetingsService.java
│ └── IndexRootMapper.java
└── redhat
└── fuse
└── boosters
└── cb
└── Application.java
Environment
- Red Hat Fuse
- 7.x
- SpringBoot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.