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

RateLimiterAspect触发限流后提示不正确 #43

Closed
sukang00 opened this issue Aug 16, 2022 · 1 comment
Closed

RateLimiterAspect触发限流后提示不正确 #43

sukang00 opened this issue Aug 16, 2022 · 1 comment

Comments

@sukang00
Copy link

image
try 里面 throw new ServiceException("访问过于频繁,请稍候再试"); 会被 外层catch (Exception e) 拦住,所以一直不提示 "访问过于频繁,请稍候再试"

@yangzongzhuan
Copy link
Owner

测试是正常有效的,没有你说的问题。上面还有一个catch会捕获ServiceException异常,而不是进入Exception

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