用Arthas抓取MyBatis中包含指定字符串的SQL
# 语句中的“ZL0204_03”就是SQL包含的字符串,通常是条件中的常量字符串,实现过滤
watch org.apache.ibatis.mapping.BoundSql getSql -n 50 'returnObj' 'returnObj.indexOf("ZL0204_03") != -1'
学习使我充实,分享给我快乐!
# 语句中的“ZL0204_03”就是SQL包含的字符串,通常是条件中的常量字符串,实现过滤
watch org.apache.ibatis.mapping.BoundSql getSql -n 50 'returnObj' 'returnObj.indexOf("ZL0204_03") != -1'