Commit 16d23935 authored by suhuiguang's avatar suhuiguang

1.防止线程池复用问题

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