300.3. Spring Boot Auto-Configuration


组件支持 13 个选项,它们如下所列。

Expand
名称描述默认类型

camel.component.servlet.allow-java-serialized-object

请求使用 context-type=application/x-java-serialized-object 时,是否允许 java serialization。默认情况下关闭。如果您启用此功能,Java 将把传入的数据从请求中反序列化为 Java,这可能会成为潜在的安全风险。

false

布尔值

camel.component.servlet.attachment-multipart-binding

是否会在 Camel Exchange 上自动绑定多部分/信息数据作为附件。选项附加MultipartBinding=true 和 disableStreamCache=false 无法一起工作。删除 disableStreamCache 以使用 AttachmentMultipartBinding。这将默认关闭,因为这可能需要 servlet 特定配置在使用 Servlet 时启用此功能。

false

布尔值

camel.component.servlet.enabled

启用 servlet 组件

true

布尔值

camel.component.servlet.file-name-ext-whitelist

接受上传的文件的接受文件名扩展白名单。多个扩展可以通过逗号分隔,如 txt,xml。

 

字符串

camel.component.servlet.header-filter-strategy

使用自定义 org.apache.camel.spi.HeaderFilterStrategy 过滤来自 Camel 消息的标头。选项是一个 org.apache.camel.spi.HeaderFilterStrategy 类型。

 

字符串

camel.component.servlet.http-binding

使用自定义 HttpBinding 控制 Camel 消息和 HttpClient 之间的映射。选项是一个 org.apache.camel.http.common.HttpBinding 类型。

 

字符串

camel.component.servlet.http-configuration

使用共享 HttpConfiguration 作为基本配置。选项是一个 org.apache.camel.http.common.HttpConfiguration 类型。

 

字符串

camel.component.servlet.http-registry

使用自定义 org.apache.camel.component.servlet.HttpRegistry。选项是一个 org.apache.camel.component.servlet.HttpRegistry 类型。

 

字符串

camel.component.servlet.mapping.context-path

servlet 组件用于自动映射的上下文路径。

/camel/*

字符串

camel.component.servlet.mapping.enabled

启用 servlet 组件到 Spring web 上下文的自动映射。

true

布尔值

camel.component.servlet.mapping.servlet-name

Camel servlet 的名称。

CamelServlet

字符串

camel.component.servlet.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.servlet.servlet-name

要使用的默认 servlet 名称。默认名称为 CamelServlet。

CamelServlet

字符串

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat