The server does not respond to the client with null properties (in order to facilitate querying JSON data) spring.jackson.default-property-inclusion=NON_NULL

#In order to facilitate the query of JSON data, hide attributes without values, and reduce traffic consumption, the server should not respond to the client with null attributes! You can add @JsonInclude(value=Include.NON_NULL) before the property or class, or you can add the global configuration in application.properties:

spring.jackson.default-property-inclusion=NON_NULL

Guess you like

Origin blog.csdn.net/weixin_44182157/article/details/109131683