<bean id="userServiceImpl" class="com.bj.aop.xml.before.UserServiceImpl"></bean>
    <bean id="security" class="com.bj.aop.xml.before.Security"></bean>
    <aop:config>
    <aop:aspect id="aa" ref="security">
    <aop:pointcut expression="execution(* *.saveUser*(..))" id="save"/>
    <aop:pointcut expression="execution(void com.bj.aop.xml.before.UserServiceImpl.updateUser(java.lang.String, java.lang.String))" id="update"/>
    <aop:before method="checkSecurity" pointcut-ref="save"/>
     <aop:before method="checkSecurity" pointcut-ref="update"/>
    </aop:aspect>
    </aop:config>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2022-01-06
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-05-27
  • 2021-04-14
  • 2022-01-20
  • 2022-12-23
相关资源
相似解决方案