Mybatis 解决问题的记录与博客

问题:mybatis 空值映射的问题
Mybatis在使用resultMap来映射查询结果中的列,如果查询结果中包含空值的列(不是null),则Mybatis在映射的时候,不会映射这个字段

https://www.oschina.net/question/1032714_224673 查询 name,sex,age,数据库中的age字段没有值,Mybatis返回的map中只映射了 name和sex字段,而age字段则没有包含。


测试ID :4facf3daa46b45eda1007b42d9a1e78f


https://blog.csdn.net/gebitan505/article/details/54929287 mybatis优雅的使用

https://blog.csdn.net/qincidong/article/details/76120968 分页插件集成springboot

prostgreSQL

pagehelper:
helperDialect: sqlserver
reasonable: true
supportMethodsArguments: true
pageSizeZero: true
params: count=countSql


https://www.cnblogs.com/onetwo/p/7371778.html SpringBoot集成MyBatis的分页插件PageHelper

<!-- 配置mybatis的分页插件PageHelper -->
15 <plugins>
16 <!-- com.github.pagehelper为PageHelper类所在包名 -->
17 <plugin interceptor="com.github.pagehelper.PageHelper">
18 <!-- 设置数据库类型Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六种数据库 -->
19 <property name="dialect" value="mysql"/>
20 </plugin>
21 </plugins>


https://www.cnblogs.com/zheting/p/6707035.html springBoot启动原理

posted @ 2018-04-09 18:25  潸然  阅读(258)  评论(0编辑  收藏  举报