Commit eb368a89 authored by liqin's avatar liqin 💬

bug fixed

parent 475781d8
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();
}
}
...@@ -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:
......
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