blob: 89adc56bfe2c89c3ae975e1e58d9621351acafbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package com.example.spring.aop.aoplogger;
import org.aspectj.lang.JoinPoint;
public class Logger {
public void beforMethodExecuted(JoinPoint joinPoint) {
System.out.println("AOP Logger (BEFORE): " + joinPoint.getSignature());
}
public void afterMethodExecuted(JoinPoint joinPoint) {
System.out.println("AOP Logger (AFTER): " + joinPoint.getSignature());
}
}
|