百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

mybatis-log-plugin

> 编程语言
开源

将 Mybatis sql 日志恢复为全部可执行文件 .

359 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 Mybatis sql 日志恢复为全部可执行文件 .

English

MyBatis Log Plugin

插件功能

  • 还原MyBatis输出的日志为完整的SQL语句。
  • 把SQL日志里面的?替换为真正的参数值。
  • 选中要还原的MyBatis日志,右键点击菜单Restore Sql,还原SQL语句.
  • Java接口方法与Mapper xml文件互相跳转。

按钮作用

  • Text: 从文本内容还原SQL语句
  • Settings: 导航跳转开关,配置不想要输出的SQL语句
  • Format: 输出格式化过的SQL语句
  • Rerun: 重启插件
  • Stop: 停止插件

日志示例

MyBatis Log Test: DEBUG sql1 -  ==>  Preparing: select * from t_table where name = ?
MyBatis Log Test: DEBUG sql1 -  ==> Parameters: hello(String)
MyBatis Log Test: INFO sql2 -  ==>  Preparing: update t_table set name = ? where id = ?
MyBatis Log Test: INFO sql2 -  ==> Parameters: world(String), 123(Integer)
MyBatis Log Test: WARN sql3 -  ==>  Preparing: delete from t_table where id = ?
MyBatis Log Test: WARN sql3 -  ==> Parameters: 123(Integer)
MyBatis Log Test: ERROR sql4 - ==>  Preparing: select * from t_table order by id asc 
MyBatis Log Test: ERROR sql4 - ==>  Parameters: 

插件输出的完整的可执行的SQL语句如下:

--  1  MyBatis Log Test: DEBUG sql1 -  ==>
 select *
 FROM t_table
 WHERE name = 'hello';
------------------------------------------------------------
--  2  MyBatis Log Test: INFO sql2 -  ==>
 update t_table set name = 'world'
 WHERE id = 123;
------------------------------------------------------------
--  3  MyBatis Log Test: WARN sql3 -  ==>
 delete
 FROM t_table
 WHERE id = 123;
------------------------------------------------------------
--  4  MyBatis Log Test: ERROR sql4 - ==>
 select *
 FROM t_table order by id asc;

安装下载

mybatis-log-plugin.jar

价格

$5/year

插件文档

https://www.yuque.com/kookob/plugin
文档里面包含插件介绍,使用手册,购买流程,激活失败等说明。

其他插件

  • MyBatis Log Plugin
  • Smart Jump
  • Smart Search
  • Toolset

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaintellij-pluginmybatismybatis-log

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言