MyBatis allows you to intercept calls to at certain points within the execution of a mapped statement
By default, MyBatis allows plug-ins to intercept method calls of:
• Executor (update, query, flushStatements, commit, rollback, getTransaction, close, isClosed)
执行器
• ParameterHandler (getParameterObject, setParameters)
参数处理器
• ResultSetHandler (handleResultSets, handleOutputParameters)
结果集处理器
• StatementHandler (prepare, parameterize, batch, update, query)
sql语句处理器
插件可以对数据库执行某个操作阶段来进行拦截