Return a null value is ignored (pro-test) data to the front end

Premise: The SpringBoot framework. Add the following configuration to the yml profile.

spring:
   jackson:
    default-property-inclusion: non_null

 

Guess you like

Origin blog.csdn.net/yunxuantu/article/details/92072975