Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
qqq
最新推荐文章于 2023-09-05 19:04:09 发布
本文解决了一个关于'thread-bound request'未找到的问题,该问题通常发生在尝试从非Web请求线程中访问请求属性时。建议使用RequestContextListener或RequestContextFilter来暴露当前请求。
3270

被折叠的 条评论
为什么被折叠?



