Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
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
licc
data-server
Commits
eb368a89
Commit
eb368a89
authored
Mar 05, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
475781d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
RequestContextConfig.java
...in/java/cn/wisenergy/web/config/RequestContextConfig.java
+21
-0
application-test.yml
wisenergy-web-admin/src/main/resources/application-test.yml
+1
-1
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/config/RequestContextConfig.java
0 → 100644
View file @
eb368a89
package
cn
.
wisenergy
.
web
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.context.request.RequestContextListener
;
@Configuration
public
class
RequestContextConfig
{
/**
* 监听器:监听HTTP请求事件
* 解决RequestContextHolder.getRequestAttributes()空指针问题
*
* @return
*/
@Bean
public
RequestContextListener
requestContextListener
()
{
return
new
RequestContextListener
();
}
}
wisenergy-web-admin/src/main/resources/application-test.yml
View file @
eb368a89
...
@@ -38,7 +38,7 @@ spring:
...
@@ -38,7 +38,7 @@ spring:
database
:
0
database
:
0
host
:
39.97.107.31
host
:
39.97.107.31
port
:
6379
port
:
6379
password
:
password
:
1qaz@WSX
timeout
:
6000ms
timeout
:
6000ms
jedis
:
jedis
:
pool
:
pool
:
...
...
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