김영한의 스프링 핵심 원리(고급편) - AOP의 포인트컷, AOP의 어드바이스 종류
·
김영한의 스프링 핵심 원리 - 고급편
QuestionAOP에서 어드바이스의 우선순위를 지정하는 방법은?@Around와 @Before 사용의 큰 차이점은?@Around로 모든 기능을 수행할 수 있는데 다른 어노테이션이 있는 이유는? 포인트컷을 분리하여 AOP 사용//Pointcut 분리 하지 않는 방식@Slf4j@Aspectpublic class AspectV2 { @Around("execution(* hello.aop.order..*(..))") public Object doLog(ProceedingJoinPoint joinPoint) throws Throwable { log.info("[log] {}", joinPoint.getSignature()); // 메서드 시그니처를 로깅 return joinPo..