AspectJ pointcut for annotated PRIVATE methods
I want to create a Pointcut for private methods that are annotated with a specific annotation. However my aspect is not triggered when the annotation is on a private method like below. @Aspect public class ServiceValidatorAspect { @Pointcut("within(@com.example.ValidatorMethod *)") public void methodsAnnotatedWithValidated() { } @AfterReturning( pointcut = "methodsAnnotatedWithValidated()", returning = "result") public void throwExceptionIfErrorExists(JoinPoint joinPoint, Object result) { ... } Service Interface public interface UserService { UserDto createUser(UserDto userDto); } Service