From 3ca9d94ccec823656a4b5829462a8d7856acef32 Mon Sep 17 00:00:00 2001 From: lbw Date: Sat, 27 May 2023 10:07:02 +0800 Subject: [PATCH 1/4] =?UTF-8?q?:rotating=5Flight:=20Removing=20linter=20wa?= =?UTF-8?q?rnings.=20=E9=94=99=E8=AF=AF=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ....springframework.boot.autoconfigure.AutoConfiguration.imports | 1 - 1 file changed, 1 deletion(-) diff --git a/pig-common/pig-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/pig-common/pig-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 81cc2017..6fe4f1ad 100644 --- a/pig-common/pig-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/pig-common/pig-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -4,4 +4,3 @@ com.pig4cloud.pig.common.core.config.RedisTemplateConfiguration com.pig4cloud.pig.common.core.config.RestTemplateConfiguration com.pig4cloud.pig.common.core.util.SpringContextHolder com.pig4cloud.pig.common.core.config.WebMvcConfiguration -com.pig4cloud.pig.common.core.util.RedisUtils \ No newline at end of file From e3e712801a179636881d2da97796df855f4340ed Mon Sep 17 00:00:00 2001 From: GuoZhang Date: Mon, 12 Jun 2023 06:05:31 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9spring.checkstyle.plugin?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GuoZhang --- pig-common/pig-common-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-common/pig-common-bom/pom.xml b/pig-common/pig-common-bom/pom.xml index 2afef282..09c96a12 100644 --- a/pig-common/pig-common-bom/pom.xml +++ b/pig-common/pig-common-bom/pom.xml @@ -21,7 +21,7 @@ 1.8 1.8 4.9.9 - 0.0.34 + 0.0.38 1.2.83 1.6.9 2.2.0 From d0cddfd89c447b0fe20a11b401c9dc3aa790e2bf Mon Sep 17 00:00:00 2001 From: lbw Date: Sun, 18 Jun 2023 08:54:02 +0800 Subject: [PATCH 3/4] =?UTF-8?q?:memo:=20Writing=20docs.=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0issue=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53a504b1..3accd23c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ [ 配套视频 tv.pig4cloud.com](https://www.bilibili.com/video/BV12t411B7e9) -[PIGX 在线体验 pigx.pig4cloud.com](http://pigx.pig4cloud.com) +[PIGX 在线体验 pigx.pigx.top](http://pigx.pigx.top) [产品白皮书 paper.pig4cloud.com](https://paper.pig4cloud.com) From e427126bcc4199f7ac95090b1287c82ef7ba0f4b Mon Sep 17 00:00:00 2001 From: knight Date: Wed, 26 Jul 2023 11:03:37 +0800 Subject: [PATCH 4/4] =?UTF-8?q?:recycle:=20PigSecurityInnerAspect=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=89=8D=E7=BD=AE=E9=80=9A=E7=9F=A5=E6=9B=BF=E4=BB=A3?= =?UTF-8?q?=E7=8E=AF=E7=BB=95=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/component/PigSecurityInnerAspect.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java b/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java index 6d55f61e..42f2ff1f 100644 --- a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java +++ b/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java @@ -16,17 +16,15 @@ package com.pig4cloud.pig.common.security.component; -import cn.hutool.core.util.StrUtil; import com.pig4cloud.pig.common.core.constant.SecurityConstants; import com.pig4cloud.pig.common.security.annotation.Inner; import lombok.RequiredArgsConstructor; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; import org.springframework.core.Ordered; -import org.springframework.core.annotation.AnnotationUtils; import org.springframework.security.access.AccessDeniedException; import javax.servlet.http.HttpServletRequest; @@ -45,8 +43,8 @@ public class PigSecurityInnerAspect implements Ordered { private final HttpServletRequest request; @SneakyThrows - @Around("@within(inner) || @annotation(inner)") - public Object around(ProceedingJoinPoint point, Inner inner) { + @Before("@within(inner) || @annotation(inner)") + public void around(JoinPoint point, Inner inner) { // 实际注入的inner实体由表达式后一个注解决定,即是方法上的@Inner注解实体,若方法上无@Inner注解,则获取类上的 // 这段代码没有意义,拦截的就是@Inner注解,怎么会为null呢 // if (inner == null) { @@ -58,7 +56,6 @@ public class PigSecurityInnerAspect implements Ordered { log.warn("访问接口 {} 没有权限", point.getSignature().getName()); throw new AccessDeniedException("Access is denied"); } - return point.proceed(); } @Override