perft: Reduce the scope of pointcut to make the package scope of tangent point as small as possible (#1238)

pull/1241/head
guqing 2021-01-24 12:18:37 +08:00 committed by GitHub
parent 7cb4f3464a
commit 042e72f224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class DisableOnConditionAspect {
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() {
}

View File

@ -19,7 +19,7 @@ import run.halo.app.security.context.SecurityContextHolder;
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() {
}