多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
切面类的编写 ``` @Component public class AnotherAspect { public void before() { System.out.println("another aspect before"); } public void after() { System.out.println("another aspect after"); } } ``` xml配置 ``` <!-- 使用xml方式配置aop --> <aop:config> <aop:aspect ref="anotherAspect"> <aop:pointcut expression="execution(* com.neuedu.aop.business.*.*(..))" id="pc"/> <aop:before method="before" pointcut-ref="pc"/> <aop:after method="after" pointcut-ref="pc"/> </aop:aspect> </aop:config> ```