当前位置:网站首页>IDEA中实现Mapper接口到映射文件xml的跳转
IDEA中实现Mapper接口到映射文件xml的跳转
2022-07-29 05:28:00 【crysw】
个人博客
欢迎访问个人博客: https://www.crystalblog.xyz/
备用地址: https://wang-qz.gitee.io/crystal-blog/
背景
在mapper接口中的方法, 需要定位到mapper映射xml文件中位置时, 只能全局搜索或打开mapper映射xml文件内搜索, 有没有什么方式可以直接鼠标点击mapper接口方法, 就能快速定位到mapper映射xml文件的id位置呢? 经过一番搜索, 发现了一款好用的插件 MyBatisX.
安装插件
在idea插件库中搜索 MyBatisX, 点击安装后重启IDEA就可以使用了.
重启IDEA后, 可以看到mapper接口和mapper映射xml文件用不同颜色的小飞鸟图标进行了标识.
鼠标点击mapper接口的方法 或 方法左边的红色小飞鸟图标, 会直接跳转到mapper映射xml文件的对应id位置. 在xml文件中的行号也有展示.

好用的很, 分享给大家.
边栏推荐
猜你喜欢
随机推荐
Understanding of access, hybrid and trunk modes
Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
Apisik health check test
Use of PDO
吴恩达老师机器学习课程笔记 03 线性代数回顾
SS command details
软件包设置成——>YUM源
最新PyCharm2018破解教程
MySQL:当你CRUD时BufferPool中发生了什么?十张图就能说清楚
吴恩达老师机器学习课程笔记 00 写在前面
How to use SFTP command to access SFTP server on the development board
网络工具中的“瑞士军刀”-nc
比较单片机3种时钟电路方案
5G控制面协议之N2接口
【冷冻电镜】RELION4.0 pipeline命令总结(自用)
Hongke shares | how to test and verify complex FPGA designs (1) -- entity or block oriented simulation
Mutual conversion between Base64 and file
【论文阅读 | 冷冻电镜】RELION 4.0 中新的 subtomogram averaging 方法解读
吴恩达老师机器学习课程笔记 05 Octave教程
SQL developer graphical window to create database (tablespace and user)









