Skip to content

Commit 7687b4f

Browse files
author
lbw
committed
🎨 Improving structure / format of the code.
1 parent 0ed03c9 commit 7687b4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/pig4cloud/plugin/idempotent/annotation/Idempotent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
public @interface Idempotent {
1313

1414
/**
15-
* <p>如果是实体类的话,默认拦截不会生效.
16-
* objects.toString()会返回不同地址.
15+
* <p>
16+
* 如果是实体类的话,默认拦截不会生效. objects.toString()会返回不同地址.
1717
* </p>
1818
* 幂等操作的唯一标识,使用spring el表达式 用#来引用方法参数
1919
* @return Spring-EL expression

src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void beforePointCut(JoinPoint joinPoint) {
8181
key = keyResolver.resolver(idempotent, joinPoint);
8282
}
8383
// 当配置了el表达式但是所选字段为空时,会抛出异常,兜底使用url做标识
84-
if(key == null){
84+
if (key == null) {
8585
key = request.getRequestURL().toString();
8686
}
8787

0 commit comments

Comments
 (0)