I use Camel Bindy and @FixedLengthRecord strategy .

I have a field :

@DataField(pos=21, length=6, trim=true,align="R")
private BigDecimal refundCount

and I want leading this field zeros. What can I do to achieve this ?

有帮助吗?

解决方案

Have you tried setting paddingChar='0'

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top