-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: documentationA documentation taskA documentation task
Milestone
Description
I can write like this.
@Component
@Aspect("pertypewithin(com..*)")
@Scope("prototype")
public class TimeAspect {
@Pointcut("execution(* com.dngzs.spring.service..*.*(..))")
public void time() {
}
@Before("time()")
public void before(JoinPoint joinpoint) {
System.out.println("before:" + joinpoint);
}
}
The official document is written like this:
Spring supports AspectJ’s
perthis
andpertarget
instantiation models;percflow
,percflowbelow
, andpertypewithin
are not currently supported.
Is my example wrong?
luoshuibing and dngzs
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: documentationA documentation taskA documentation task