forked from sppan24/free-mybatis-plugin
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fa27af
commit 02d4736
Showing
29 changed files
with
34 additions
and
2,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,7 @@ | ||
基于<https://gitee.com/wuzhizhan/free-mybatis-plugin>升级,支持2020.2.4版本。 | ||
# free-mybatis-plugin | ||
|
||
[中文](README.md) | | ||
[ENGLISH](README_EN.md) | ||
## Changes: | ||
|
||
## Description | ||
A idea plugin for mybatis . | ||
free-mybatis-plugin 是一款增强idea对mybatis支持的插件,主要功能如下: | ||
- 生成mapper xml文件 | ||
- 快速从代码跳转到mapper及从mapper返回代码 | ||
- mybatis自动补全及语法错误提示 | ||
|
||
## 使用方法 | ||
free-mybatis-plugin是一个提高mybatis编码的插件。实现了dao代码跳转到mapper,mapper跳转回dao,mapper文件、statement查询自动生成功能。 | ||
### 灵活使用alt+enter和ctrl+B实现提示和跳转 | ||
- 生成mapper文件 | ||
- alter+enter弹出 | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_26a01dec_131460.png) | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_59d74c18_131460.jpeg) | ||
- 生成statement语句 | ||
- alter+enter弹出 | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_594bfd4d_131460.jpeg) | ||
- dao跳转到mapper(也可以ctrl+B跳入) | ||
- ![](https://images.gitee.com/uploads/images/2020/0121/151850_9821ea07_131460.jpeg) | ||
- mapper跳转回dao(也可以ctrl+b跳入) | ||
- ![](https://images.gitee.com/uploads/images/2020/0121/151850_6ff9859f_131460.jpeg) | ||
<br><br><br> | ||
## mybatis generator gui使用方法 | ||
- 配置数据库<br> | ||
![](https://images.gitee.com/uploads/images/2020/0121/151850_7decd93e_131460.png) | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_3b35abd0_131460.png) | ||
- 在需要生成代码的表上右键,选择mybatis generator,打开预览界面。 <br> | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_6552ab20_131460.png) | ||
- 配置生成参数<br> | ||
![](https://images.gitee.com/uploads/images/2020/0121/151849_7fd4ada5_131460.png) | ||
- 注意:当数据库用mysql8,在URL上定义时区,推荐使用'?serverTimezone=GMT',配置中勾选上mysql8选项。<br> | ||
|
||
## TODO | ||
- 根据数据库字段生产bean | ||
- 快捷生成CURD操作 | ||
|
||
## 参考 | ||
- better-mybatis-generator https://github.com/kmaster/better-mybatis-generator | ||
- mybatis-generator-gui https://github.com/zouzg/mybatis-generator-gui | ||
- MyBatisCodeHelper-Pro https://github.com/gejun123456/MyBatisCodeHelper-Pro | ||
## 我的微信公众号 - it新技术 | ||
更多内容,欢迎关注公众号 【it新技术】 | ||
- ![](https://images.gitee.com/uploads/images/2020/0121/151850_6e6ac5da_131460.jpeg) | ||
![](https://images.gitee.com/uploads/images/2020/0121/151850_003d690f_131460.jpeg) | ||
- Compatible with Intellij IC edition. | ||
- Not to warn static method or the method with mybatis provider annotation. | ||
- Remove MyBatis Generator. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
36 changes: 0 additions & 36 deletions
36
src/main/java/com/wuzhizhan/mybatis/action/MybatisGeneratorMainAction.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.