摘要: 第一种: @JsonInclude(JsonInclude.Include.NON_NULL) 第二种: spring: jackson: default-property-inclusion: non_null 作者:懒_小白链接:https://www.jianshu.com/p/940407a 阅读全文
posted @ 2020-08-18 18:30 疯子110 阅读(2187) 评论(0) 推荐(0) 编辑
摘要: 快捷键 Ctrl + G : 阅读全文
posted @ 2020-08-18 18:27 疯子110 阅读(7656) 评论(0) 推荐(5) 编辑
摘要: 在日常开发中,查询数据返回类型为map,数据库中有些自动值为null,则返回的结果中没有值为空的字段,则如何显示值为空的字段呢? 1.xml文件: [html] view plain copy <resultMap id="userLoginInfo" type="map" > <result co 阅读全文
posted @ 2020-08-18 18:26 疯子110 阅读(2223) 评论(0) 推荐(0) 编辑