@Aspect
@Component
@Order(-99)
public class TestAspect {
private static final String POINT_CUT = "datasource()";
@Pointcut("execution(* xx.xxx.xxx.repository..*.*(..))")
public void datasource() {
}
}
如上所示,其中execution(* xx.xxx.xxx.repository..*.*(..))
中的参数我想在配置中进行配置,因为这个拦截值是动态的,有没有什么好的方法?
两种思路:
推荐第二种