-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: 轻量化部署优化 #2643 #2663
feature: 轻量化部署优化 #2643 #2663
Conversation
@@ -24,15 +24,18 @@ public IamAppTransferAspect(AppScopeMappingService appScopeMappingService) { | |||
this.appScopeMappingService = appScopeMappingService; | |||
} | |||
|
|||
@Pointcut("execution (* com.tencent.bk.job.common.iam.service.impl.BusinessAuthServiceImpl.auth*(..))") | |||
@Pointcut("within(com.tencent.bk.job..*) " + | |||
"&& execution (* com.tencent.bk.job.common.iam.service.impl.BusinessAuthServiceImpl.auth*(..))") | |||
public void processAuthBusinessAction() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搜索范围可以进一步细化到com.tencent.bk.job.common.iam.service.impl.BusinessAuthServiceImpl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搜索范围可以进一步细化到com.tencent.bk.job.common.iam.service.impl.BusinessAuthServiceImpl
fix
@@ -17,11 +17,13 @@ | |||
@Aspect | |||
public class IamExceptionHandleAspect { | |||
|
|||
@Pointcut("execution (* com.tencent.bk.sdk.iam.service.impl.PolicyServiceImpl.*(..))") | |||
@Pointcut("within(com.tencent.bk.job..*) " + | |||
"&& execution (* com.tencent.bk.sdk.iam.service.impl.PolicyServiceImpl.*(..))") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搜索范围可以进一步细化到com.tencent.bk.sdk.iam.service.impl.PolicyServiceImpl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
public void processPolicyServiceAction() { | ||
} | ||
|
||
@Pointcut("execution (* com.tencent.bk.sdk.iam.helper.AuthHelper.isAllowed(..))") | ||
@Pointcut("within(com.tencent.bk.job..*) " + | ||
"&& execution (* com.tencent.bk.sdk.iam.helper.AuthHelper.isAllowed(..))") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搜索范围可以进一步细化到com.tencent.bk.sdk.iam.helper.AuthHelper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搜索范围可以看看能否继续优化
jOOQ,spring-boot and aop. jOOQ/jOOQ#5902
AOP 编写参考:

https://docs.spring.io/spring-framework/docs/5.3.9/reference/html/core.html#writing-good-pointcuts