增加 transient 修饰进行解决,例如: private transient final DecimalFormat df = new DecimalFormat("#0.00"); 相关文章: 2022-12-23 2021-04-05 2021-07-04 2022-02-14 2022-02-07 2021-08-29 2022-12-23 2021-12-26