springboot+MyBatis返回Map时值为null的字段会丢失

springboot+MyBatis返回Map时值为null的字段会丢失
application.yml 配置文件加入:

configuration:
  call-setters-on-nulls: true

你可能感兴趣的:(问题解决方法)