IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

0. 目录

1. 插件介绍

2. 安装方式

3. 使用方法

3.1 从Mapper接口跳转到xml文件

3.2 从xml文件跳转到Mapper接口


1. 插件介绍

实现Mapper接口和XML文件之间跳转。

2. 安装方式

第一种方式是使用IDEA下载插件进行安装

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

第二种方式是使用离线插件进行安装

插件下载地址:https://plugins.jetbrains.com/plugin/8321-free-mybatis-plugin/

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

3. 使用方法

3.1 从Mapper接口跳转到xml文件

将从mapper接口文件中的方法跳转到xml文件对应的方法

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

跳转到

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

3.2 从xml文件跳转到Mapper接口

将从xml文件中的方法跳转到mapper接口中对应的方法处。

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

跳转到

IDEA插件系列(12):Free MyBatis plugin插件——实现Mapper接口与xml文件之间相互跳转

可以通过箭头进行相互跳转,十分的方便。