Mybatis-Log-Plugin, an excellent plug-in for IntelliJ IDEA

1. When you need to check some sql exceptions, you need to check the executed sql statement.

2. It is common that mybatis generally uses log4j to print and execute sql statements, and the other is the Mybatis-Log-Plugin plug-in

mybatis prints:

Mybatis-Log-Plugin prints:

1. Install the plug-in

Open the IDEA settings, File->Settings->Plugins plug-in option, find Browse repositories under this tab to browse the plug-in library, the operation process is as follows:

2. Search for plugins in the plugin library

Different versions Since Mybatis Log Plugin is now charged, we can download its uncharged historical version for installation.

Historical version download: https://download.csdn.net/download/weixin_50002038/87253125?spm=1001.2014.3001.5503 

 

3. Search in the input box Mybatis-Log-Plugin Click Install    Click Restart IntelliJ IDEA Restart IDEA

4. How to open the Mybatis-Log-Plugin console

    1. The first way Toolbar Tools

               

       2. The second way is to right-click the run console

               

Finally, provide a plugin name: Free Mybatis plugin

Usually, it is very troublesome to find the corresponding xml in the dao layer. With this plug-in, you don’t need it. It will automatically recognize your method name and find the corresponding one in the mapper. Mark it with a green mark. You can click the green The arrow realizes the fast shuttle between dao and mapper.

Guess you like

Origin blog.csdn.net/weixin_50002038/article/details/128219431