Apache camel 设置Bindy字段的默认值
我正在生成一个由Bindy模型定义的大型.CSV文件。并不是所有的字段都被填充,所以有时我需要一个默认值,但我没有找到一个参数来定义它Apache camel 设置Bindy字段的默认值,apache-camel,bindy,Apache Camel,Bindy,我正在生成一个由Bindy模型定义的大型.CSV文件。并不是所有的字段都被填充,所以有时我需要一个默认值,但我没有找到一个参数来定义它 <!-- Bindy data format --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-bindy</artifactId> <!
<!-- Bindy data format -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-bindy</artifactId>
<!--use of ${camel-version} ?-->
<version>2.9.2</version>
</dependency>
camel bindy
的2.9.2版尚不支持defaultValue
属性。如果可能,请使用更新版本>=2.10.0
@DataField(pos = 9, defaultValue = "0") String von; -- error java:cannot find method defaultValue()
@DataField(pos = 10, defaultValue = "0") Integer absolut;-- error java:cannot find method defaultValue()