Interceptor和它要截取得class在一个package下时,Interceptor自身不能出现在被截取得表达式中,比如使用了

类别:Java 点击:0 评论:0 推荐:

转自:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=51690

You are getting the error because the Interceptor is in the same package expression as the class you are trying to intercept. Thus, you have an infinite loop.

Put your interceptors in another package that doesn't match your wildcard.

Bill

本文地址:http://com.8s8s.com/it/it13856.htm