@JsonInclude(JsonInclude.Include.ALWAYS) 期望转换后的json字符串应该为: {"id":1200,"name":null,"createDate":15622858066864} 实际转换的json为: {"id":1200,"createDate":15622858066864} 在转换的类上加@JsonInclude(JsonInclude.Include.ALWAYS)
posted on 2023-07-25 15:10 悄悄的来,匆匆的走 阅读(79) 评论(0) 编辑 收藏 举报