Red Hat Training

A Red Hat training course is available for Red Hat Fuse

279.6.4. Spring Boot での使用

Camel 2.19.0 以降、camel-servlet-starter ライブラリーは、'/camel/*" コンテキストパス下の REST エンドポイントをすべて自動的にバインドします。以下の表は、camel-servlet-starter ライブラリーで利用可能なその他の設定プロパティーをまとめたものです。Camel サーブレットの自動マッピングも無効にできます。

Spring Boot プロパティーデフォルト説明

camel.component.servlet.mapping.enabled

true

Servlet コンポーネントと Spring Web コンテキストへの自動マッピングを有効にします。

camel.component.servlet.mapping.context-path

/camel/*

自動マッピングのサーブレットコンポーネントによって使用されるコンテキストパス

camel.component.servlet.mapping.servlet-name

CamelServlet

Camel サーブレットの名前