需要每个字段都加上吗,有没有办法同一种类型的字段只要加一次
@JsonSerialize(using = BigDecimal2StringJsonSerializer.class )
BigDecimal money;
BigDecimal money2;
BigDecimal money3;
![]() |
1
newaccount 50 天前
注册全局 formatter?
WebMvcConfigurer.addFormatters |
![]() |
2
beetlerx 50 天前
ObjectMapper.registerModule()
|