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>
posted @ 2020-09-23 17:51  Spring_Xian  阅读(1181)  评论(0编辑  收藏  举报