我刚刚创建了一个新的 grails-app,
一切都很好,直到我决定
安装 Spring Security Core。
在安装 Spring Security Core
并执行 s2-quickstart 并点击
grails run-app 后,它产生了
以下错误:
URI
/test1/
Class
java.lang.IllegalStateException
Message
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 Security Core 1.2.4
Grails 2.0.0.RC1