@Component
public class Aspect {
public void before(){
System.out.println("rinima");
}
}
*/
@Component
public class AspectBiz {
public void biz(){
System.out.println("rilegou");
}
}
<context:component-scan base-package="com.lesson.Aspect">
</context:component-scan>
<aop:config>
<aop:aspect id="myAspect" ref="aspect">
<aop:pointcut id="point" expression="execution(* com.lesson.Aspect.AspectBiz.*(..))"/>
<aop:before method="before" pointcut-ref="point"/>
</aop:aspect>
</aop:config>