AOP1 Spring AOP 의 JoinPoint 에서 class name, method name 얻는 방법 AOP 에서 classname 을 얻는 방법은 간단합니다.처음에 Proxy name 을 가져와서 조금 찾아보다가 다음에 잊어버리지 않기 위해 정리해봅니다. @Around("controllerPointcut()")public Object ctrlAround(ProceedingJoinPoint joinPoint) throws Throwable { String className = joinPoint.getSignature().getDeclaringTypeName(); String simpleClassName = className.substring(className.lastIndexOf(".") + 1); String methodName = joinPoint.getSignature().getNa.. 2024. 6. 19. 이전 1 다음