How to specify single pointcut for multiple packages
In spring Boot
@Before("execution(* PackageName.Controller.Service.MethodName(..))
||execution(* PackageName.Controller.Service.*.*(..))")
Example Spring-projects/AOP
You can use boolean operators:
expression="execution(* package1.*.*(..)) || execution(* package2.*.*(..))"
In case you use Annotations
@Pointcut("within(com.package1..*) || within(com.package2..*)")