INfinite recursion detected .

INfinite recursion detected .

字面上意思就是 “检测到无穷的递归”

这个错误发生的时候,感觉特别奇怪,我项目里就没有用什么递归。。。应该是struts 内部出问题

 

这是使用interceptor(拦截器) 跳转到另一个action 后出现的问题

否则每次跳到action 之前又要跳到自已写的拦截器上,然后拦截器跳转到action ,在执行action 之前得先通过interceptor.

这样,。。就是无穷递归了。。。。。

解决方法:

将跳转到的那个action使用默认的interceptor .(defaultInterceptor)...去掉自已写的interceptor...

 

你可能感兴趣的:(struts,Interceptor,action,recursion)