59.4. Spring Boot Auto-Configuration


组件支持 10 个选项,如下所列。

Expand
Name描述默认值类型

camel.dataformat.castor.allowed-unmarshall-objects

定义允许的对象为 unmarshalled。您可以指定允许对象的 FQN 类名称,您可以使用逗号分隔多个条目。也可以使用通配符和正则表达式,它们基于链接 org.apache.camel.util.EndpointHelperBuildmatchPattern (String, String)定义的模式。拒绝的对象优先于允许的对象。

 

字符串

camel.dataformat.castor.classes

向 Castor XmlContext 添加额外的类名称

 

string[]

camel.dataformat.castor.content-type-header

如果数据格式可以这样做,则数据格式是否应使用 data 格式的类型设置 Content-Type 标头。例如,用于数据格式的 application/xml 放入 XML 或用于数据格式的 application/json,如 JSon 等。

false

布尔值

camel.dataformat.castor.denied-unmarshall-objects

将被拒绝的对象定义为 unmarshalled。您可以指定 FQN 类名称 deined 对象,您可以使用逗号分隔多个条目。也可以使用通配符和正则表达式,它们基于链接 org.apache.camel.util.EndpointHelperBuildmatchPattern (String, String)定义的模式。拒绝的对象优先于允许的对象。

 

字符串

camel.dataformat.castor.enabled

启用 castor dataformat

true

布尔值

camel.dataformat.castor.encoding

将对象聚合到 XML 时使用的编码。默认是 UTF-8

UTF-8

字符串

camel.dataformat.castor.mapping-file

到 Castor 映射文件的路径,以便从 classpath 加载。

 

字符串

camel.dataformat.castor.packages

将其他软件包添加到 Castor XmlContext

 

string[]

camel.dataformat.castor.validation

验证是打开还是关闭。默认为 true。

true

布尔值

camel.dataformat.castor.whitelist-enabled

定义是否启用了 Whitelist 功能

true

布尔值

ND

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat