Commit 16d23935 authored by suhuiguang's avatar suhuiguang

1.防止线程池复用问题

parent 2acfabff
...@@ -19,8 +19,7 @@ public class ClearThreadLocalInterceptor implements HandlerInterceptor { ...@@ -19,8 +19,7 @@ public class ClearThreadLocalInterceptor implements HandlerInterceptor {
} }
@Override @Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, public void afterCompletion(HttpServletRequest request, HttpServletResponse response,Object handler, Exception ex) {
ModelAndView modelAndView) {
// 清除ThreadLocal变量 // 清除ThreadLocal变量
FlowingEquipRedisContext.clean(); FlowingEquipRedisContext.clean();
} }
......
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