首页 > 编程语言 > 详细

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

时间:2020-09-23 20:55:24      阅读:235      评论:0      收藏:0      [点我收藏+]

尴尬  书写不规范

<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>

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

原文:https://www.cnblogs.com/springxian/p/13719949.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!