mirror of https://github.com/halo-dev/halo
perft: Reduce the scope of pointcut to make the package scope of tangent point as small as possible (#1238)
parent
7cb4f3464a
commit
042e72f224
|
@ -28,7 +28,7 @@ public class DisableOnConditionAspect {
|
||||||
this.haloProperties = haloProperties;
|
this.haloProperties = haloProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Pointcut("@annotation(run.halo.app.annotation.DisableOnCondition)")
|
@Pointcut("execution(* run.halo.app.controller.*.*(..)) && @annotation(run.halo.app.annotation.DisableOnCondition)")
|
||||||
public void pointcut() {
|
public void pointcut() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import run.halo.app.security.context.SecurityContextHolder;
|
||||||
public class SensitiveConcealAspect {
|
public class SensitiveConcealAspect {
|
||||||
|
|
||||||
|
|
||||||
@Pointcut("@annotation(run.halo.app.annotation.SensitiveConceal)")
|
@Pointcut("execution(* run.halo.app.repository.*.*(..)) && @annotation(run.halo.app.annotation.SensitiveConceal)")
|
||||||
public void pointCut() {
|
public void pointCut() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue