mybatis, set Map return, when the value of the attribute will not empty
Add the following configuration in application.properties, the will to solve this problem.
# When a query returns a null field is empty, without the query data is empty, the field will be hidden
mybatis.configuration.call-setters-on-nulls = true