核心判断方法是
Proxy.getInvocationHandler(XXXMapper) instanceof org.apache.ibatis.binding.MapperProxy
mybatis 生成动态代理的方法在org.apache.ibatis.binding.MapperProxyFactory#newInstance()
主要是通过Proxy.newProxyInstance()
protected T newInstance(MapperProxy<T> mapperProxy) {
return (T) Proxy.newProxyInstance(mapperInterface.