首页 > 技术文章 > mybatis相关

hustdc 2018-09-15 16:50 原文

1 namespace

dao中使用namespace+id一起来完成对mapper中sql statement的调用。

2 关于resultMap和parameterType

parameterType是用来指定输入参数的,而resultMap是用来指定输出参数的。

3 SqlSession的update函数的返回值

insert/update的返回值都是本次操作影响的行的数目。

 

推荐阅读