
mybatis
xingxinghann
这个作者很懒,什么都没留下…
展开
-
mybatis mysql自增主键返回
对于自增主键的返回<insert id="insertUser" parameterType="cn.itcast.mybatis.po.User"> <!-- selectKey实现将主键返回,将主键返回到user对象中 keyProperty:返回的主键存储在pojo中的哪个属性 order:selectKey的执行顺序,是相对与insert语句原创 2017-11-14 18:36:02 · 1918 阅读 · 0 评论 -
mybatis分页插件 PageHelper
使用方法: 1,引入依赖jar包<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelpe原创 2017-11-24 14:36:20 · 599 阅读 · 0 评论