1、@Intercepts({@Signature(type =StatementHandler.class, method = "prepare", args ={Connection.class, Integer.class})})
2、
类型 MetaObject 中的方法 forObject(Object, ObjectFactory, ObjectWrapperFactory, ReflectorFactory)对于参数(StatementHandler, ObjectFactory, ObjectWrapperFactory)不适用
解决办法:
MetaObject metaObject = MetaObject.forObject(statementHandler, SystemMetaObject.DEFAULT_OBJECT_FACTORY, SystemMetaObject.DEFAULT_OBJECT_WRAPPER_FACTORY, new DefaultReflectorFactory());
使用默认的ReflectorFactory接口的实现类