用Arthas抓取MyBatis中包含指定字符串的SQL

# 语句中的“ZL0204_03”就是SQL包含的字符串,通常是条件中的常量字符串,实现过滤
watch org.apache.ibatis.mapping.BoundSql getSql -n 50 'returnObj' 'returnObj.indexOf("ZL0204_03") >= 0'
posted @ 2023-08-08 16:40  JaxYoun  阅读(623)  评论(0编辑  收藏  举报