mybatis-全局配置文件-mybatis-config.xml- plugins-7

xiaoxiao2021-02-28  72

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语句处理器

插件可以对数据库执行某个操作阶段来进行拦截

转载请注明原文地址: https://www.6miu.com/read-36027.html

最新回复(0)