|
@@ -18,6 +18,7 @@ import org.aspectj.lang.annotation.AfterReturning;
|
|
|
import org.aspectj.lang.annotation.AfterThrowing;
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
|
import org.aspectj.lang.annotation.Before;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
@@ -34,6 +35,7 @@ import java.util.StringJoiner;
|
|
|
* @author Lion Li
|
|
|
*/
|
|
|
@Aspect
|
|
|
+@Component
|
|
|
public class RepeatSubmitAspect {
|
|
|
|
|
|
private static final ThreadLocal<String> KEY_CACHE = new ThreadLocal<>();
|