mybatis相关

1 namespace

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

2 关于resultMap和parameterType

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

3 SqlSession的update函数的返回值

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

原文地址:https://www.cnblogs.com/hustdc/p/9651375.html