赞
踩
SQLInterceptor.java
package com.guide.util;
import java.sql.Connection;
import java.util.Date;
import java.util.Properties;
import org.apache.ibatis.executor.statement.BaseStatementHandler;
import org.apache.ibatis.executor.statement.RoutingStatementHandler;
import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Plugin;
import org.apache.ibatis.plugin.Signature;
/**
运行时SQL输出
*/
@Intercepts({ @Signature(type = StatementHandler.class, method = “prepare”, args = { Connection.class }) })
public class SQLInterceptor implements Int
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。