I have 1 class LoggingInterceptor which implements 3 types of advice(before,after,and throw), it seems like
then it turns out that only before Advice can be invoked,the other two dont. Because I have 3Code:<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <value>test</value> </property> <property name="interceptorNames"> <list> <value>logging</value> </list> </property> </bean> <bean id="logging" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"> <property name="advice"> <ref local="loggingInterceptor"/> </property> <property name="pattern"> <value>.*load.*</value> </property> </bean> <bean id="loggingInterceptor" class="LoggingInterceptor"></bean>
Can anyone please tell me why?


Reply With Quote