Premise: The SpringBoot framework. Add the following configuration to the yml profile.
spring:
jackson:
default-property-inclusion: non_null
Premise: The SpringBoot framework. Add the following configuration to the yml profile.
spring:
jackson:
default-property-inclusion: non_null