namespace
namespace中的包名要和接口的包名一致!
select
选择,查询语句。
id对应namespace中的方法名。
resultType表示SQL语句的返回值。
parameterType表示传入的参数类型。
insert
update
delete
注意点:增删改需要提交事务。
Mybatis学习
原文:https://www.cnblogs.com/LoganChen/p/13450003.html