buc算法java实现,用Redis解决接口防刷的问题
/*** 请求拦截*/@Slf4j@Componentpublic classRequestLimitIntercept extends HandlerInterceptorAdapter {@Autowiredprivate RedisTemplateredisTemplate;@Overridepublicboolean preHandle(HttpServletRequest request...