There's a new plugin that allows you to directly print the complete executable SQL without configuring MyBatis. https://www.youtube.com/watch?v=kATvDdN6Gx4
https://plugins.jetbrains.com/plugin/26550-mybatis-log-ultra