SpringBoot json does not return empty

Add these few sentences to the configuration file.

spring:
  jackson:
    default-property-inclusion: non_null

 

Guess you like

Origin blog.csdn.net/qq_38238041/article/details/109105163