java 有些 toString 工具,比如:lombok 中的 toString,打印出来的东西类似是这样的。
BookResponseDTO(super=BaseResponseDTO(success=false, code=LY0528002000, message=null), orderSerialNo=null, priceChange=true, prices=[PriceDTO(type=1, price=8987.00, foreignPrice=8987.00, tax=2212.00, foreignTax=2212.00, premiumPrice=0)], bookPrices=[PriceDTO(type=1, price=8173.00, foreignPrice=8173.00, tax=2237.00, foreignTax=2237.00, premiumPrice=0)], relationOrders=[])
建议支持这种toString的字段串格式化为 Json