spring-boot - 带有会话范围 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.
解决方案
推荐阅读
- webrtc - 多少回合服务器应该是最佳的
- python - 如何在不安装的情况下使用 Boto3 libray
- azure - Azure 数据工厂中的缓存查找属性
- python - 如何使用2个数据框的交集作为索引,然后再除以另一个
- javascript - 在按钮上单击选中标记/勾选标记单击时选定的下拉选项显示活动的勾选标记
- c# - 发生模型绑定错误时,ASP.NET WebAPI 全局错误处理过滤器不起作用
- docker - 在 docker compose /bin/sh: 1: main: not found 中找不到可执行文件
- apache-spark - Spark 与 S3 的集成
- xampp - 本地主机 phpmyadmin 中的问题。使用模板缓存时出错
- c# - 从 xml 文件复制数据并粘贴到同一文件中并使用 FIle.Copy() 覆盖