久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

java - Spring boot 配置spring.jackson.serialization-inclusion無效

瀏覽:131日期:2024-02-10 17:31:43

問題描述

在學習spring boot時配置Jackson遇到一個配置spring.jackson.serialization-inclusion無效,配置在一起的date-format是有效的,查了一大圈資料,感覺應該可以才對!

github上的問題鏈接:https://github.com/spring-pro...

參照github上配的,spring boot是 1.5.1版本,不知道為什么不起作用,項目中的配置:

#Jackson配置spring.jackson: serialization-inclusion: non_null date-format: yyyy/MM/dd HH:mm:ss

界面的輸出:

{ 'color': '#1e90ff', 'color0': null, 'type': 'dashed', 'width': 2, 'shadowColor': null, 'shadowBlur': null, 'shadowOffsetX': null, 'shadowOffsetY': null, 'normal': null, 'emphasis': null}##這是另一個例子{'id':1,'email':null,'name':'jack','birth':'2017/02/28 14:43:00'}

問題解答

回答1:

配置 spring.jackson.default-property-inclusion

標簽: java
相關文章:
主站蜘蛛池模板: 兴国县| 平江县| 江永县| 张家港市| 永城市| 紫云| 凌云县| 措勤县| 二连浩特市| 辽宁省| 隆昌县| 万盛区| 巴彦县| 菏泽市| 翼城县| 嘉定区| 禹城市| 淮安市| 吐鲁番市| 白朗县| 资阳市| 荔浦县| 府谷县| 兴安盟| 商洛市| 东辽县| 垫江县| 萨迦县| 龙泉市| 石楼县| 府谷县| 威宁| 余庆县| 乌兰察布市| 贡嘎县| 荆州市| 西乡县| 沧州市| 双桥区| 刚察县| 鄄城县|