ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
切面类的编写 ``` @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> ```