Skip to content

Commit

Permalink
🎨 Improving structure / format of the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed May 13, 2022
1 parent 0ed03c9 commit 7687b4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public @interface Idempotent {

/**
* <p>如果是实体类的话,默认拦截不会生效.
* objects.toString()会返回不同地址.
* <p>
* 如果是实体类的话,默认拦截不会生效. objects.toString()会返回不同地址.
* </p>
* 幂等操作的唯一标识,使用spring el表达式 用#来引用方法参数
* @return Spring-EL expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void beforePointCut(JoinPoint joinPoint) {
key = keyResolver.resolver(idempotent, joinPoint);
}
// 当配置了el表达式但是所选字段为空时,会抛出异常,兜底使用url做标识
if(key == null){
if (key == null) {
key = request.getRequestURL().toString();
}

Expand Down

0 comments on commit 7687b4f

Please sign in to comment.