springboot整合mybaits注解开发

springboot整合mybaits注解开发时,返回json或者map对象时,如果一个字段的value为空,需要更改springboot的配置文件

mybatis:
  configuration:
    call-setters-on-nulls: true

 

posted @ 2017-11-28 12:00  jjkang  阅读(790)  评论(0编辑  收藏  举报