spring里aop:config里面的/aop:before标签爆红问题


尴尬  书写不规范

<aop:config>
        <!--第二种方式:使用AOP的标签实现-->
       <aop:aspect ref="diy">
           <aop:pointcut id="diyPointCut" expression="execution(* com.xian.service.UserServiceImpl.*(..))"/>
           <aop:before pointcut-ref="diyPointCut" method="before"></aop:before>
           <aop:after pointcut-ref="diyPointCut" method="after"></aop:after>
       </aop:aspect>
    </aop:config>

报错示范:<aop:aspect ref="diy"/>不是自结束标签代码

<aop:aspect ref="diy">
代码写在标签里
<before>
<after>
</aop:aspect>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM