09 2022 档案
摘要:注解:@JsonInclude(value= JsonInclude.Include.NON_NULL) 返回的字段属性为null 就不会展示给前端...可以放在类上,也可以放在字段上! @JsonInclude(value= JsonInclude.Include.NON_NULL) 注解:@JS
阅读全文
摘要:jackson学习-JSON相关注解 在实际开发过程中对于对象转json有很多的工具类,这里使用的是jackson springboot 中jackson的用法 1 springboot工程本身就集成了jackson 只要是引入 <dependency> <groupId>org.springfra
阅读全文
摘要:介绍 Mybatis 内置提供了两种枚举TypeHandler,EnumTypeHandler和EnumOrdinalTypeHandler EnumTypeHandler 默认的枚举TypeHandler,入库的值为枚举的name EnumOrdinalTypeHandler 入库的值为枚举的位置
阅读全文