Intellij Idea Mybatis 插件(plugin和tools插件)
2017-03-18 16:51
309 查看
Intellij Idea Mybatis插件主要有 Mybatis plugin插件和Mybatis
tools插件。
(一)Mybatis plugin插件主要功能有:
提供Mapper接口与配置文件中对应SQL的导航
编辑XML文件时自动补全
根据Mapper接口, 使用快捷键生成xml文件及SQL标签
ResultMap中的property支持自动补全,支持级联(属性A.属性B.属性C)
快捷键生成@Param注解
XML中编辑SQL时, 括号自动补全
XML中编辑SQL时, 支持参数自动补全(基于@Param注解识别参数)
自动检查Mapper XML文件中ID冲突
自动检查Mapper XML文件中错误的属性值
支持Find Usage
支持重构从命名
支持别名
自动生成ResultMap属性
快捷键: Option + Enter(Mac) | Alt + Enter(Windows)
![](http://static.oschina.net/uploads/space/2013/1007/204732_tC3T_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204744_iwqO_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204756_0krP_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204809_H5Tr_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204819_LGqZ_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204832_5upU_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/205713_YpN9_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204843_sfWI_232763.png)
(二)Mybatis tools插件主要功能有:
1)提供Mapper接口方法与XML配置文件中对应SQL自由切换导航。
2)提供Mapper接口方法调用明细。
说明截图如下:
![](http://img.blog.csdn.net/20170318164928915?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveWFuZ3NoaWppbjE5ODg=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20170318165000400?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveWFuZ3NoaWppbjE5ODg=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
(三)、Intellj Idea15中安装Myabtis插件
![](http://img.blog.csdn.net/20170318165402272?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveWFuZ3NoaWppbjE5ODg=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
选择File->Settings->Plugins,在上图窗口中,选择Browse repositores,在搜索框中输入"mybatis",分别选择安装Mybatis plugin和Mybatis tools插件,点击Install安装插件。
tools插件。
(一)Mybatis plugin插件主要功能有:
提供Mapper接口与配置文件中对应SQL的导航
编辑XML文件时自动补全
根据Mapper接口, 使用快捷键生成xml文件及SQL标签
ResultMap中的property支持自动补全,支持级联(属性A.属性B.属性C)
快捷键生成@Param注解
XML中编辑SQL时, 括号自动补全
XML中编辑SQL时, 支持参数自动补全(基于@Param注解识别参数)
自动检查Mapper XML文件中ID冲突
自动检查Mapper XML文件中错误的属性值
支持Find Usage
支持重构从命名
支持别名
自动生成ResultMap属性
快捷键: Option + Enter(Mac) | Alt + Enter(Windows)
![](http://static.oschina.net/uploads/space/2013/1007/204732_tC3T_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204744_iwqO_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204756_0krP_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204809_H5Tr_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204819_LGqZ_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204832_5upU_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/205713_YpN9_232763.png)
![](http://static.oschina.net/uploads/space/2013/1007/204843_sfWI_232763.png)
(二)Mybatis tools插件主要功能有:
1)提供Mapper接口方法与XML配置文件中对应SQL自由切换导航。
2)提供Mapper接口方法调用明细。
说明截图如下:
(三)、Intellj Idea15中安装Myabtis插件
选择File->Settings->Plugins,在上图窗口中,选择Browse repositores,在搜索框中输入"mybatis",分别选择安装Mybatis plugin和Mybatis tools插件,点击Install安装插件。
相关文章推荐
- Intellij idea mybatis 插件 freeMybatisPlugin和 MybatisTools那些事
- IDEA的mybatis插件plugin 和tools
- IntelliJ IDEA下使用 mybatis-generator-maven-plugin插件完成Mybatis逆向工程
- Mybatis Plugin插件安装破解及使用
- Win7下Mybatis Plugin插件安装破解及使用
- 【Smart插件】smart-plugin-mybatis 介绍
- 在IDEA下,使用maven的mybatis-generator-maven-plugin插件自动生成实体类
- MyBatis Generator系列(六)----MyBatis Generator Plugin插件之SerializablePlugin
- IntelliJ Idea 14 安装 Golang 插件 google-go-lang-idea-plugin 的方法
- Intellij Idea Mybatis 插件的功能
- Mybatis3.4.x技术内幕(十九):Mybatis之plugin插件设计原理
- maven-war-plugin 插件打包时,src/main/java 目录下mybatis的映射文件如何配置
- Intellij IDEA Mybatis plugin插件破解安装
- mybatis-plugin插件破解
- Android Gradle插件(plugin)版本(version)与Gradle、SDK Build Tools版本关系
- mybatis (Ibatis ibator) generator - 1 mysql 分页插件(page/paging/pagination plugin)
- Mybatis Plugin插件安装破解及使用
- IntelliJ idea mybatis插件功能介绍
- 在intellij 中安装mybatis plugin插件并破解步骤