定义InvocationHandler
开启debug日志,会创建ConnectionLogger
执行ConnectionLogger的invoke方法,在该方法中,ConnectionLogger 会为 prepareStatement()、prepareCall()、createStatement() 三个方法添加代理逻辑
代码注释
public Object invoke(Object proxy, Method method, Object[] params)
throws Throwable {
try {
if (Object.class.equals(method.getDeclaringC