Tagged articles
2 articles
Page 1 of 1
Lobster Programming
Lobster Programming
Aug 6, 2024 · Backend Development

How to Log MyBatis SQL and Execution Time with Config, Plugins, and p6spy

This guide explains three common ways to output MyBatis SQL statements and their execution times—using simple configuration logging, a custom MyBatis interceptor plugin, and the third‑party p6spy library—along with code examples and practical considerations for development and production environments.

MyBatisPerformance MonitoringSQL Logging
0 likes · 8 min read
How to Log MyBatis SQL and Execution Time with Config, Plugins, and p6spy