我在spring的applicationContext.xml中配置了aop
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
 <bean id="petStore" class="com.itfuture.netoa.spring.PetStoreImpl">
<property name="usersDao" ref="usersDao"/>
 </bean>
 <bean id="accountValidator" class="com.itfuture.netoa.spring.AccountValidator"/>
 <bean id="emailAdvice" class="com.itfuture.netoa.domain.logic.SendOrderConfirmationEmailAdvice"/>
 <bean id="secure_editUser" class="com.itfuture.netoa.spring.AccountFormController">
<property name="petStore" ref="petStore"/>
<property name="validator" ref="accountValidator"/>
<property name="successView" value="index"/>
 </bean>
 <bean id="myPointcutAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
  <property name="advice">
    <ref local="emailAdvice"/>
  </property>
  <property name="patterns">
    <list>
       <value>.*insertUsers.*</value>
    </list>
   </property>
</bean>
<bean id="basemyAOPProxy" class="org.springframework.aop.framework.ProxyFactoryBean" >
   <property name="proxyInterfaces">
    <value>com.itfuture.netoa.spring.PetStoreFacade</value>
   </property>
   <property name="target">
     <ref local="petStore"/>
   </property>
   <property name="interceptorNames">
    <list>
      <value>myPointcutAdvisor</value>
    </list>
   </property>
</bean>
</beans>
项目是运行在tomcat4.1.27上,运行时当相应的方法insertUsers(已配置)执行时aop的拦截器不能拦截,advice不执行,能用上面的测试类SpringTestCase2(见上面)测试时,当insertUsers执行时,拦截器拦截advice可以执行,不知道是什么原因?????????????????