diff --git a/src/main/java/com/pig4cloud/plugin/idempotent/annotation/Idempotent.java b/src/main/java/com/pig4cloud/plugin/idempotent/annotation/Idempotent.java index b5404dc..5b2ab1a 100644 --- a/src/main/java/com/pig4cloud/plugin/idempotent/annotation/Idempotent.java +++ b/src/main/java/com/pig4cloud/plugin/idempotent/annotation/Idempotent.java @@ -12,8 +12,8 @@ public @interface Idempotent { /** - *
如果是实体类的话,默认拦截不会生效. - * objects.toString()会返回不同地址. + *
+ * 如果是实体类的话,默认拦截不会生效. objects.toString()会返回不同地址. *
* 幂等操作的唯一标识,使用spring el表达式 用#来引用方法参数 * @return Spring-EL expression diff --git a/src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java b/src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java index 223fda0..f4762ec 100644 --- a/src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java +++ b/src/main/java/com/pig4cloud/plugin/idempotent/aspect/IdempotentAspect.java @@ -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(); }