私が持っているアプリケーションのコンテキストで
<beans:bean id="Facade"
class="com.facade.Facade"/>
すべてが正常に機能し、次を使用してファサードにアクセスできますSpringUtil.getBean("Facade")
しかし、私がsession = scope
ieを追加すると
<beans:bean id="Facade"
class="com.facade.Facade" scope="session"/>
以下のエラーが表示されます....どうすれば修正できますか? zk
+を使用していますspring security
[java] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'F
acade': Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you inte
nd 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? If you are actually operating within a web req
uest and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In thi
s case, use RequestContextListener or RequestContextFilter to expose the current request.