The public no. :WarmSmile

Words: 338

Reading time: 3 minutes

MyBatis Log Plugin

  • Restore mybatis SQL log to original whole executable file SQ.
  • Plug-in generated SQL statement replacement? To the actual parameter value.
  • Select the console payroll log and right-click the Restore Sql menu Restore Sql.
  • Navigate between Java methods and Mapper XML.

benefits

  • Quickly locate SQL errors without wasting time on Copy code

The installation

  • Open IntelliJ IDEA and select File->Settings->Plugins

  • Search the search box for “MyBatis Log Plugin” and install

  • IntelliJ IDEA 2019 + + Shift + Alt + O

  • Run the code to see the results

  • Note that the configuration

conclusion

It can be seen that the log printed by the plug-in can be directly executed by us, which can quickly locate SQL problems

More useful plug-ins can be recommended to me in the comments below.

Thank you very much!

Phase to recommend

[Design mode combination] Builder + responsibility chain mode

Understand the chain of responsibility model in three minutes

Three minutes to understand the Builder model

We get to decide what our story is. Our stories are written by ourselves.

Follow the public account WarmSmile

Grow together and progress together