My service classes are created in the following packages:
and currently I have to declare the pointcut like the following,
How can simply this?
<aop:pointcut id="serviceMethods" expression="execution(* com.myapp.service.*.*(..)) || execution(* com.myapp.service.*.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="serviceMethods" />
Is there any way I can declare the pointcut in one simple expression to include all the sub-packages? without having to include it one by one using the "||"?
Please help, thank you!