在一个方面我们可以声明一个属性吗?如果是,为什么我在方法中获取name属性的空值?
@Aspect
@Component
public class ProtectResourceOperationAspect {
private String name = "my name";
@AfterReturning("execution(* org.jxs.mm.service..*(..)) && @annotation(auth) && args(user, theme, ..)")
public void updateThemeLock(ProtectResourceUploadAuth auth, User user, Theme theme) {
System.out.println(name);//null
}
}