随笔分类 -  Mybatis

Mybatis书写
摘要:Mybatis设置主键和自增方法1: <insert id="insert" parameterType="Person" useGeneratedKeys="true" keyProperty="id"> insert into person(name,pswd) values(#{name},# 阅读全文
posted @ 2019-06-07 15:43 code丶wei 阅读(148) 评论(0) 推荐(0)
Mybatis使用Mybatis-generator插件及配置(数据库逆向工程)
摘要:Mybatis使用Mybatis-generator插件 首先在POM.xml文件添加架包,我这里用的是SpringBoot,所以用的也是SpringBoot架包,最少要mybatis,generator,mysql 导入插件依赖包后,在plugins内配置 然后在resources包下创建myba 阅读全文
posted @ 2019-05-29 22:12 code丶wei 阅读(2692) 评论(0) 推荐(0)