File tree Expand file tree Collapse file tree
spring-aop/src/main/java/org/baeldung/performancemonitor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616@ EnableAspectJAutoProxy
1717public class AopConfiguration {
1818
19- @ Pointcut ("execution(public String com .baeldung.performancemonitor.PersonService.getFullName(..))" )
19+ @ Pointcut ("execution(public String org .baeldung.performancemonitor.PersonService.getFullName(..))" )
2020 public void monitor () { }
2121
22- @ Pointcut ("execution(public int com .baeldung.performancemonitor.PersonService.getAge(..))" )
22+ @ Pointcut ("execution(public int org .baeldung.performancemonitor.PersonService.getAge(..))" )
2323 public void myMonitor () { }
2424
2525 @ Bean
@@ -30,7 +30,7 @@ public PerformanceMonitorInterceptor performanceMonitorInterceptor() {
3030 @ Bean
3131 public Advisor performanceMonitorAdvisor () {
3232 AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut ();
33- pointcut .setExpression ("com .baeldung.performancemonitor.AopConfiguration.monitor()" );
33+ pointcut .setExpression ("org .baeldung.performancemonitor.AopConfiguration.monitor()" );
3434 return new DefaultPointcutAdvisor (pointcut , performanceMonitorInterceptor ());
3535 }
3636
@@ -52,7 +52,7 @@ public MyPerformanceMonitorInterceptor myPerformanceMonitorInterceptor() {
5252 @ Bean
5353 public Advisor myPerformanceMonitorAdvisor () {
5454 AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut ();
55- pointcut .setExpression ("com .baeldung.performancemonitor.AopConfiguration.myMonitor()" );
55+ pointcut .setExpression ("org .baeldung.performancemonitor.AopConfiguration.myMonitor()" );
5656 return new DefaultPointcutAdvisor (pointcut , myPerformanceMonitorInterceptor ());
5757 }
5858
You can’t perform that action at this time.
0 commit comments