fix: 开启向上级寻找注解。

This commit is contained in:
Suomm 2023-06-25 16:48:34 +08:00
parent 63d0a7133e
commit 6c74c9bdb1

View File

@ -40,7 +40,7 @@ public class DataSourceAdvice extends AbstractPointcutAdvisor {
@Override
public Pointcut getPointcut() {
AnnotationMatchingPointcut cpc = new AnnotationMatchingPointcut(UseDataSource.class/*, true*/);
AnnotationMatchingPointcut cpc = new AnnotationMatchingPointcut(UseDataSource.class, true);
AnnotationMethodMatcher mpc = new AnnotationMethodMatcher(UseDataSource.class);
return new ComposablePointcut(cpc).union(mpc);
}