Jhipster与UAA应用程序以及会话范围Bean

时间:2018-09-12 12:37:40

标签: spring-boot 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.

0 个答案:

没有答案