类 GybytMybatisSqlLogInterceptor

  • 所有已实现的接口:
    org.apache.ibatis.plugin.Interceptor

    @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="query",args={java.sql.Statement.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="update",args=java.sql.Statement.class) @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="batch",args=java.sql.Statement.class)
    public class GybytMybatisSqlLogInterceptor
    extends Object
    implements org.apache.ibatis.plugin.Interceptor
    用于输出每条 SQL 语句及其执行时间
    作者:
    codetiger
    • 构造器详细资料

      • GybytMybatisSqlLogInterceptor

        public GybytMybatisSqlLogInterceptor​(GybytMybatisProperties gybytMybatisProperties)
    • 方法详细资料

      • intercept

        public Object intercept​(org.apache.ibatis.plugin.Invocation invocation)
                         throws Throwable
        指定者:
        intercept 在接口中 org.apache.ibatis.plugin.Interceptor
        抛出:
        Throwable