生成mybatisplus的代码:

MyBatisPlus:

使用:https://blog.csdn.net/beibei3321/article/details/124978498

  1. other -> config database 配置数据库

  1. 填写密码啥的

 

 

  1. other -> code generator 选中数据表,并按照自己的环境配置包路径,最后点击 save -> code generatro 生成代码

 

 

为什么还要用codehelper.generator

因为他帮我们生成xml里面的方法,所以需要用他配合生成xml文件;

Codehelper.Generator

 

 

  1. 输入上一步骤生成的实体类名称(这个插件根据实体类生成代码)

 

 

 

 

 

 

  1. 把对应的Dao,Dao.xml,Service里面的方法copy到上一步生成的代码里面

posted on 2022-08-25 11:50  幂次方  阅读(173)  评论(0编辑  收藏  举报