1 namespace
dao中使用namespace+id一起来完成对mapper中sql statement的调用。
2 关于resultMap和parameterType
parameterType是用来指定输入参数的,而resultMap是用来指定输出参数的。
3 SqlSession的update函数的返回值
insert/update的返回值都是本次操作影响的行的数目。
本文共 242 字,大约阅读时间需要 1 分钟。
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