1. 下载MybatisCodeHelper插件
- 下载已破解的插件压缩包,一定注意校验sha1sum!!!
- 在IDEA中本地安装插件
- 激活方法(自2.7.3):IDEA顶部菜单:Tools -> MybatisCodeHelper -> Activation -> OfflineActivation,在offline key框输入任意字符串
- 激活方法(旧):IDEA顶部菜单:Tools -> MybatisCodeHelper -> offlineActivation,输入任意字符串
下载列表
MybatisCodeHelperNew-2.8.2-183-201
sha1sum: 0dccbc14b5494b4a7b85f38b82cf5b6a7c544354
MybatisCodeHelperNew-2.8.1-191-201
sha1sum: b2c9f88ae3caf09382c7f00907bc132e5151002b
MybatisCodeHelperNew-2.8.1-181-183
sha1sum: cf3e079779a5bd35a4f3efe933d5052896c304bc
MybatisCodeHelperNew-2.8.0-191-201
sha1sum: 4e0c3135f3acd6b361a49f0110305d83d08f4e9f
MybatisCodeHelperNew-2.8.0-181-183
sha1sum: ad870c5cb5c7a2866a78b36aadcebf21e433afc1
MybatisCodeHelperNew-2.7.9-191-201
sha1sum: dde949b0758c7aa3933ff4479ee7a70be9743d92
MybatisCodeHelperNew-2.7.8-191-193
sha1sum: d5b7a9dc5a97fd049922b9341e8f3ecf2a8604de
MybatisCodeHelperNew-2.7.8-181-183
sha1sum: 177cc9b6b1bc4f5afa7eac0747f0223e20867318
MybatisCodeHelperNew-2.7.7-191-193
sha1sum: bd57c133e0192338d513836100e924f72714f087
MybatisCodeHelperNew-2.7.7-181-183
sha1sum: 20df77cb6cc1c43a6922cf589a3e8f37c1043c16
MybatisCodeHelperNew-2.7.6-IDEA181-IDEA193
sha1sum: 0a76a0a470b093191bc53135397abe5c51181da5
MybatisCodeHelperNew-2.7.5-IDEA181-IDEA193
sha1sum: d809d478834605750faa5c34fd137465c39a9d8b
MybatisCodeHelperNew-2.7.4-IDEA181-IDEA192
sha1sum: ebbac762b359565fb0bd3320ade7d14303ad22d0
MybatisCodeHelperNew-2.7.3-IDEA173-IDEA192
sha1sum: 81ce9c9e8aa11f06e37f569f2f1d6cbda24ca242
MybatisCodeHelperNew-2.7.2-IDEA173-IDEA192
sha1sum: b8ef796b38388ee18925cf0dfa1816c0a01b88fb
MybatisCodeHelperNew-2.7.1-IDEA173-IDEA192
sha1sum: 3cb1971198f4b25b6a3d38faffca7cadc5924c92
MybatisCodeHelperNew-2.7.0-IDEA173-IDEA191
sha1sum: 3a70954b3b868503a88acff1ca1ca559bbc5d163
MybatisCodeHelperNew-2.6.1-IDEA173-IDEA191
sha1sum: a33f556caeb578fc24d2103750f28bff373f9bec
MybatisCodeHelperNew-2.6-IDEA173-IDEA191
sha1sum: aa4dcb0d818932eae7a6f4d6f778121a0dfa979b
MybatisCodeHelperNew-2.5-IDEA173-IDEA191
sha1sum: 12b4d4aeec85f4d45343b5f085a7d283adae2d80
MybatisCodeHelperNew-2.2-IDEA162-IDEA172(IDEA老版本)
sha1sum: 0c09e511f19311968f1270543261a820534a7843
2. 离线安装MybatisCodeHelper插件
file->settings-plugins,选择工具按钮,从磁盘导入,选择下载好的zip插件包
3.激活插件
在idea的database视图中,导入一个可用的数据库,选择一个表,然后右键,就有Mybatis generator的选项,第一次可能需要激活码,文件里面有说明输入任何字符串就可以激活
4.使用标题MybatisCodeHelper插件
再次右键后点击Mybatis generator,输入对应文件的生成目录,点击ok,就可以成功生成需要的mapper,domain和xml文件了,除此之外还可以选择domain里面使用lombok插件,别忘了引入lombok依赖。exampleQuery
点击ok自动生成
EasyCode
https://www.jianshu.com/p/e4192d7c6844
详解参考
https://blog.csdn.net/lianghecai52171314/article/details/105511508