首页 > 解决方案 > 带有会话范围 bean 的 uaa 应用程序的 Jhipster

问题描述

我已经用 uaa 生成了 jhipster 应用程序。现在,当我使用会话范围 spring bean 配置时,我得到了错误

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.

标签: spring-bootjhipster

解决方案


推荐阅读