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

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

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

瀏覽:125日期: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
相關文章:
主站蜘蛛池模板: 江西省| 田阳县| 外汇| 宜春市| 磴口县| 桑植县| 罗甸县| 天水市| 锦屏县| 始兴县| 天台县| 弥渡县| 西青区| 阜城县| 宁海县| 浮山县| 英吉沙县| 乐亭县| 出国| 卫辉市| 洪江市| 佛坪县| 漳州市| 德江县| 根河市| 阿瓦提县| 烟台市| 车致| 天峨县| 公安县| 孝感市| 台中县| 西和县| 饶阳县| 易门县| 乌海市| 扎囊县| 广丰县| 随州市| 洞头县| 宜州市|