![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 57
That's Ao
这个作者很懒,什么都没留下…
展开
-
idea插件通过mapper跳转xml
Free MyBatis plugin原创 2021-03-17 11:47:04 · 233 阅读 · 0 评论 -
mybatis example 使用方法
1. insertSelective();User里面有三个字段:id,name,age,password但是我只设置了一个字段;User u=new user();u.setName(“张三”);insertSelective(u);3、insertSelective执行对应的sql语句的时候,只插入对应的name字段;(主键是自动添加的,默认插入为空)insert into tb_user (id,name) value (null,“张三”);2. insert();而insert则原创 2021-01-26 17:21:14 · 419 阅读 · 0 评论