如何防止spring mvc重复提交

2025-03-07 16:27:03
推荐回答(1个)
回答1:

springmvc 判断重复提交有很多方式,判断两次的url是否相同如下:

页面不需要任何传入,只需要在验证的controller方法上写上自定义注解即可
写好自定义注解

[java] view plain copy
package com.thinkgem.jeesite.common.repeat_form_validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
i