AnnotationAwareAspectJAutoProxyCreator源码分析

master
linlei 2024-04-17 15:07:14 +08:00
parent b073223650
commit 275230536b
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ public static boolean canApply(Advisor advisor, Class<?> targetClass, boolean ha
* @return 切点是否能够应用于任何方法
*/
public static boolean canApply(Pointcut pc, Class<?> targetClass, boolean hasIntroductions) {
Assert.notNull(pc, "切点不能为空");
Assert.notNull(pc, "Pointcut must not be null");
// 首先检查类过滤器是否匹配目标类
if (!pc.getClassFilter().matches(targetClass)) {
return false;