JasonBeiJing opened a new issue #2453: URL: https://github.com/apache/servicecomb-java-chassis/issues/2453
基于cse RestServlet发布的api,默认cse注册的RestServlet是开启异步支持的,如果我们添加javax.servlet.Filter并通过@WebFilter(filterName = "xxxx", urlPatterns = "/api/*", asyncSupported = true)启用filter,其中asyncSupported = true是必须的(因为RestServlet的异步是开启的)。我们一般会在filter做一些拦截处理然后设置一些线程变量进ThreadLocal,这个时候发现ThreadLocal是不起作用的,因为asyncSupported = true,导致filter中和后续api的执行线程不是同一个线程,请问cse这块有没有什么解决方案? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
