Skip to content

Commit

Permalink
Signed-off-by: huangbin <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
huangbin committed Sep 13, 2016
1 parent 631d972 commit 27af1fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ mybatis是一个流行的ORM工具,其有一个特点:将sql抽取出来单
1. 在以dao命名结尾的类中,当鼠标在sqlId的文本上悬停时,会弹出弹层,显示出实际的sql,如图所示:
![鼠标悬停](https://raw.githubusercontent.com/huangice/images/master/screenshots/codeplus-hover.png)
(由于第一次需要扫描工程中所有的xml文件,所以第一次弹出会稍慢一些,之后就会很快了。)

这个弹层下有两个按钮,第一个按钮点击会打开对应的xml文件并定位到对应的行;第二个按钮点击则会复制sql到剪切板。
2. 在以dao或mapper命名结尾的类中,在任意位置右键点击,可以看到弹出的右键菜单中有一个选项:Open mybatis sql xml,如图:
![右键](https://raw.githubusercontent.com/huangice/images/master/screenshots/codeplus-menu.png)

点击会打开对应的xml文件。如果在sqlId的文本上右键时,会同时定位到对应的sql行。

0 comments on commit 27af1fa

Please sign in to comment.