Skip to content

Instantly share code, notes, and snippets.

@muhdkhokhar
Created October 27, 2024 11:37
Show Gist options
  • Save muhdkhokhar/45009ad755274e381c116d0c85f7046f to your computer and use it in GitHub Desktop.
Save muhdkhokhar/45009ad755274e381c116d0c85f7046f to your computer and use it in GitHub Desktop.
@Pointcut("execution(* com.yourpackage..*(..)) && !within(org.springframework.security..*)")
public void applicationPackagePointcut() {
// Pointcut to intercept application methods but exclude Spring Security
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment