mybatis return a null value Setting Map

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

Guess you like

Origin www.cnblogs.com/telwanggs/p/11386747.html