Commit 2acfabff authored by suhuiguang's avatar suhuiguang

1.防止线程池复用问题

parent e82ca417
......@@ -13,6 +13,12 @@ import javax.servlet.http.HttpServletResponse;
public class ClearThreadLocalInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler){
FlowingEquipRedisContext.clean();
return true;
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
ModelAndView modelAndView) {
// 清除ThreadLocal变量
......
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