{"id":895,"date":"2023-03-11T06:53:42","date_gmt":"2023-03-10T22:53:42","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=895"},"modified":"2023-04-29T16:36:06","modified_gmt":"2023-04-29T08:36:06","slug":"spring-boot-2-x-return-null-fields-in-json-data-and-does-not-display","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/11\/spring-boot-2-x-return-null-fields-in-json-data-and-does-not-display\/","title":{"rendered":"Spring Boot 2.X\u8fd4\u56dejson\u6570\u636e\u4e2dnull\u5b57\u6bb5\u4e0d\u663e\u793a\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u5728<code>application.properties<\/code>\u6216<code>application.yml<\/code>\u4e2d\u6dfb\u52a0<\/p>\n<pre><code class=\"language-yml\">spring:\n  jackson:\n    default-property-inclusion: non_null<\/code><\/pre>\n<p><!-- more --><\/p>\n<blockquote>\n<p>\u6ce8\uff1aSpring\u9ed8\u8ba4\u7684json\u89e3\u6790\u5de5\u5177\u662fJackson<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5728application.properties\u6216application.yml\u4e2d\u6dfb\u52a0 spring: jack [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-895","post","type-post","status-publish","format-standard","hentry","category-spring-boot"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}