Mybatis Plus 代码生成器,核心实现功能一键生成 Controller、Service、ServiceImpl、Mapper、Mapper.xml
Star一下,谢谢 🎉🎉
核心实现功能一键生成 Controller、Service、ServiceImpl、Mapper、Mapper.xml
参考文档,Mybatis Plus 官网文档
首先创建数据库,名称为mybatis-plus-code,然后导入 doc/sql/mybatis-plus-code.sql 文件
修改数据源配置,根据自己的实际地址修改,配置类位置为:cn.tellsea.skeleton.core.mybatisplus.MybatisPlusCodeConfig
dsc.setUrl("jdbc:mysql://localhost:3306/mybatis-plus-code?characterEncoding=utf8");
dsc.setDriverName("com.mysql.jdbc.Driver");
dsc.setUsername("root");
dsc.setPassword("123456");
接下来,找到Main方法,使用Java的方式运行即可。启动类路径:cn.tellsea.skeleton.core.mybatisplus.MybatisPlusCode
注意:GIF图偏大,建议下载后查看,这样不会产生卡顿现象