From edbde96487afbb300e08d5863cdc57631dc8c137 Mon Sep 17 00:00:00 2001 From: 沉浸独 <953969331@qq.com> Date: 星期五, 26 八月 2022 14:46:08 +0800 Subject: [PATCH] sa-token-jwt中hutool是5.7.14,会影响到项目中的5.8.5的使用;使用Ipv4Util时,用的是5.7.14 --- ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java index c2bbee4..d30962d 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java @@ -1,11 +1,6 @@ package com.ruoyi.common.annotation; -import java.lang.annotation.Documented; -import java.lang.annotation.ElementType; -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; +import java.lang.annotation.*; import java.util.concurrent.TimeUnit; /** @@ -19,11 +14,16 @@ @Documented public @interface RepeatSubmit { - /** - * 榛樿浣跨敤鍏ㄥ眬閰嶇疆 - */ - int intervalTime() default 0; + /** + * 闂撮殧鏃堕棿(ms)锛屽皬浜庢鏃堕棿瑙嗕负閲嶅鎻愪氦 + */ + int interval() default 5000; - TimeUnit timeUnit() default TimeUnit.MILLISECONDS; + TimeUnit timeUnit() default TimeUnit.MILLISECONDS; + + /** + * 鎻愮ず娑堟伅 鏀寔鍥介檯鍖� 鏍煎紡涓� {code} + */ + String message() default "{repeat.submit.message}"; } -- Gitblit v1.9.3