質問

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