mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
fix: 开启向上级寻找注解。
This commit is contained in:
parent
63d0a7133e
commit
6c74c9bdb1
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user