Spring mvc request scope context across threads

北战南征 提交于 2019-12-25 09:12:01

问题


In a spring MVC web application, I wanna store user information at the request scope, in the filer or interceptor I will build the user information and store it and use it later within this request.I know in spring I can create request scope spring beans, but these beans can only be accessed within the request thread(maybe the child thread).However I will access the user information in the thread pool.So the build in request scope spring bean may not suitable for me. Any tip for store information share among threads within the request scope?

来源:https://stackoverflow.com/questions/41209879/spring-mvc-request-scope-context-across-threads

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!