jdk动态代理中的问题——调用proxy的toString方法引起的栈溢出
其他文章为什么SpringAOP使用JDK动态代理时好像没有代理Object.[equals()、hashCode()、toString()]这三个方法
if (AopUtils.isEqualsMethod(method) || AopUtils.isHashCodeMethod(method) || AopUtils.isToStringMethod(method)) {
return method.invoke(subject, args);
}
spring何时调用了动态代理
org.springframework.aop.framework.JdkDynamicAopProxy
Proxy.newProxyInstance(classLoader, proxiedInterfaces, this)
![](https://img-blog.csdnimg.cn/41022e94766a402f9fb05f5090868610.png)