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