在做一个小项目,后台服务第一次用SpringBoot构建.接口使用Json格式,在application.properties中配置如下: spring.jackson.default-property-inclusion=NON_NULL spring.jackson.time-zone=GMT+8 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss 测试,竟然没有生效,Json数据中依然有null的属性,日期依然是整形数字.在Bean中设置Jacks