A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

起名very难

初级黑马

  • 黑马币:

  • 帖子:

  • 精华:

© 起名very难 初级黑马   /  2019-9-5 20:43  /  489 人查看  /  7 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/aop
        http://www.springframework.org/schema/aop/spring-aop.xsd">


    <!-- bean definitions here -->
    <bean id="acountServiceimpl" class="com.itheima.services.impl.AcountServiceimpl"></bean>
    <bean  id="logger" class="com.itheima.advice.Logger">

    </bean>

    <aop:config>
     
        <aop:aspect id="logAdvice" ref="logger">
     
            <aop:before method="printLog" pointcut="execution(public void com.itheima.services.impl.AcountServiceimpl.update())"></aop:before>
        </aop:aspect>
    </aop:config>

</beans>

7 个回复

倒序浏览
欢迎欢迎,加油呐~
回复 使用道具 举报
回复 使用道具 举报
回复 使用道具 举报
加油~同学们
回复 使用道具 举报
哇塞,棒
回复 使用道具 举报
加油
回复 使用道具 举报
加油加油
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马