Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-hook
gic-cloud
Commits
a50a5d38
Commit
a50a5d38
authored
Jun 21, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限流
parent
cc7e1b70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
RequestLimitInterfaceImpl.java
...om/gic/cloud/data/hook/web/RequestLimitInterfaceImpl.java
+18
-0
spring-servlet.xml
...loud-data-hook/src/main/webapp/WEB-INF/spring-servlet.xml
+3
-0
No files found.
gic-cloud-data-hook/src/main/java/com/gic/cloud/data/hook/web/RequestLimitInterfaceImpl.java
0 → 100644
View file @
a50a5d38
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
();
}
}
gic-cloud-data-hook/src/main/webapp/WEB-INF/spring-servlet.xml
View file @
a50a5d38
...
@@ -122,6 +122,9 @@
...
@@ -122,6 +122,9 @@
<value>
.jsp
</value>
<value>
.jsp
</value>
</property>
</property>
</bean>
</bean>
<mvc:interceptors>
<bean
class=
"com.gic.commons.interceptor.RequestLimitInterceptor"
></bean>
</mvc:interceptors>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment