@@ -32,6 +32,6 @@ public @interface RedisLimit {
LimitType limitType() default LimitType.APP_KEY;
// 提示信息
- String msg() default "系统繁忙,请稍后再试";
+ String msg() default "亲,限流了,稍后再试!";
}
@@ -73,7 +73,7 @@ public class RedisLimitAspect {
boolean limited = this.shouldLimited(key, resource, limitCount, period, timeUnit);
if(limited){
- throw new BusinessException(ErrorCode.SYSTEM_BUSY);
+ throw new BusinessException(ErrorCode.SYSTEM_BUSY, redisLimit.msg());