我有一個彈簧啓動應用程序,我添加了駱駝路線。定義路由的類擴展了FatJarRouter並用@Component註釋。當應用程序作爲彈簧啓動應用程序運行時,路徑不會被識別。但是,如果我使用@SpringBootApplication註釋在主類中編寫路由,則會標識路由。這是它現在如何顯示在日誌中:阿帕奇駱駝路線不確定
o.a.camel.spring.SpringCamelContext:共有0個路由,其中0個已啓動。 oacamel.spring.SpringCamelContext:Apache的駱駝2.17.2(CamelContext:駱駝-4):
@Override
public void configure() throws Exception{
from("file:\\input").to("file:\\output");
}
請告訴我如何在0.026秒
與路線的方法也與覆蓋註釋爲啓動我可以在將它作爲一個單獨的課程而不是主要課程編寫時識別路線。有什麼缺失嗎?
你可以顯示camelContext初始化嗎?我認爲[這篇文章將幫助你](http://camel.apache.org/spring-boot.html) –