Commit a50a5d38 by 陶光胜

限流

parent cc7e1b70
package com.gic.cloud.data.hook.web;
import com.gic.commons.interceptor.RequestLimitInterface;
import com.gic.web.common.utils.SessionContextUtils;
import javax.servlet.http.HttpServletRequest;
public class RequestLimitInterfaceImpl implements RequestLimitInterface {
@Override
public String getEnterpriseId(HttpServletRequest httpServletRequest) {
return SessionContextUtils.getLoginUserEnterpriseId();
}
@Override
public String getUserId(HttpServletRequest httpServletRequest) {
return SessionContextUtils.getLoginUser().getUserId();
}
}
......@@ -122,6 +122,9 @@
<value>.jsp</value>
</property>
</bean>
<mvc:interceptors>
<bean class="com.gic.commons.interceptor.RequestLimitInterceptor"></bean>
</mvc:interceptors>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment