We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0fcffa commit 1988bbbCopy full SHA for 1988bbb
src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java
@@ -73,7 +73,7 @@ public void beforePointCut(JoinPoint joinPoint) {
73
74
// 若没有配置 幂等 标识编号,则使用 url + 参数列表作为区分
75
if (!StringUtils.hasLength(idempotent.key())) {
76
- String url = request.getRequestURL().toString();
+ String url = request.getRequestURI();
77
String argString = Arrays.asList(joinPoint.getArgs()).toString();
78
key = url + argString;
79
}
@@ -83,7 +83,7 @@ public void beforePointCut(JoinPoint joinPoint) {
83
84
// 当配置了el表达式但是所选字段为空时,会抛出异常,兜底使用url做标识
85
if (key == null) {
86
- key = request.getRequestURL().toString();
+ key = request.getRequestURI();
87
88
89
long expireTime = idempotent.expireTime();
0 commit comments