Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

轻松搞定重复提交 #3

Open
sxm20074428 opened this issue Sep 4, 2018 · 1 comment
Open

轻松搞定重复提交 #3

sxm20074428 opened this issue Sep 4, 2018 · 1 comment

Comments

@sxm20074428
Copy link

标题内容都不符合,
引用原文“在平时开发中,如果网速比较慢的情况下,用户提交表单后,发现服务器半天都没有响应,那么用户可能会以为是自己没有提交表单,就会再点击提交按钮重复提交表单,我们在开发中必须防止表单重复提交….“

内容写的是无法实现防止个人重复提交,直接干死了这个功能就一个人同时可以使用。

说你几句内容与标题不符,还删除好友。

你这个人调子高什么呀,一般的博客我懒得联系改正,看你辛苦,分享,友情提醒你,你就上天了。

做技术的人,不要不愿意听别人的,自己错了,就是错了。

不愿意接受别人提出的问题,自己成不了什么大人物。

@levin950825
Copy link
Contributor

谢谢您百忙期间抽空加了我的好友,让我受宠若惊,为了不占用您宝贵的时间,这将是我最后一次回复您的留言,同时该 issue 将一直处于 open 状态,以便激励我
1、解决方案一开始就已经告诉过您
2、在次说明解决方案:key是灵活可以变的,限制策略是开发者自己定义的,博文中代码注释也有标明
3、RedisLockHelpertryLock(final String lockKey, final String value, final long time, final TimeUnit unit) 已经很明白的说了每个参数作用及含义,如果要满足您的需求,请直接将第一个参数 lockKey 传入成您的 sessionId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants