2.14. bindy
使用 Camel Bindy 在一端和 Comma 分隔值(CSV)、固定字段长度或键值对(KVP)格式的 POJO 之间 marshal 和 unmarshal 之间的 marshal 和 unmarshal
2.14.1. 内部是什么 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
有关使用和配置详情,请参阅上述链接。
2.14.2. Maven 协调 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
在 code.quarkus.redhat.com 上使用此扩展创建一个新项目
或者将协调添加到现有项目中:
<dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-bindy</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bindy</artifactId>
</dependency>
2.14.3. Camel Quarkus 限制 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
当在原生模式中使用 camel-quarkus-bindy 时,只支持构建机器的区域设置。
例如,在使用 french 区域构建机器上,以下代码:
BindyDataFormat dataFormat = new BindyDataFormat(); dataFormat.setLocale("ar");
BindyDataFormat dataFormat = new BindyDataFormat();
dataFormat.setLocale("ar");
格式按预期在 JVM 模式中编号。但是,它以原生模式格式化 french 编号。
如果没有进一步调优,将使用构建机器的默认区域设置。可使用 quarkus.native.user-language 和 quarkus.native.user-country 配置属性来指定另一个区域。