@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="update",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class})
public class PerformanceInterceptor
extends Object
implements org.apache.ibatis.plugin.Interceptor
性能分析拦截器,用于输出每条 SQL 语句及其执行时间
| 构造器和说明 |
|---|
PerformanceInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getMaxTime() |
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
Object |
plugin(Object target) |
void |
setMaxTime(long maxTime) |
void |
setProperties(Properties prop) |
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic void setProperties(Properties prop)
setProperties 在接口中 org.apache.ibatis.plugin.Interceptorpublic long getMaxTime()
public void setMaxTime(long maxTime)
Copyright © 2016. All rights reserved.