6.15. 自動設定の XML Rest-DSL ルートの追加
Camel Spring Boot コンポーネントによって、camel-rest
ディレクトリー以下のクラスパスに追加される Camel Rest-DSL XML ルートが自動検出され、組み込まれます。設定オプションを使用すると、ディレクトリー名を設定でき、設定オプションを使用してこの機能を無効化できます。
手順
以下のように、クラスパスの Camel Spring Boot Rest-DSL XML ルートを設定します。
// turn off camel.springboot.xmlRests = false // scan in the com/foo/routes classpath camel.springboot.xmlRests = classpath:com/foo/rests/*.xml
// turn off camel.springboot.xmlRests = false // scan in the com/foo/routes classpath camel.springboot.xmlRests = classpath:com/foo/rests/*.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 注記Rest-DSL ファイルによって、Camel XML REST 要素が定義され、
CamelContext
要素は定義されないはずです。例を以下に示します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow