HelloWorldAspect
package phz.springframework.service.impl;
/***
* 1. 有了目标类,该定义切面了,切面就是通知和切入点的组合
* 2.
* ********/
public class HelloWorldAspect {
// 前置通知
public void beforeAdvice() {
System.out.println("=====beforeAdvice======");
}
// 后置通知
public void afterFinallyAdvice() {
System.out.println("=====afterFinallyAdvice======");
}
}