小弟我们一起读文档,学习MyBatis(二)- Insert Update Delete操作的实现

我们一起读文档,学习MyBatis(二)----------- Insert Update Delete操作的实现?BlogMapper.java?注意:在执

我们一起读文档,学习MyBatis(二)----------- Insert Update Delete操作的实现

?

BlogMapper.java

?注意:在执行完方法后,必须有 session.commit();这句话进行事务提交。因为在做Insert ?Update ?Delete的时候,会先开启事务,而Mybatis不会自动提交(或许可以设置,我还不知道),所以,必须手动提交事务。