大家都知道spring bean 有生命周期,现在我有一个问题,比较急,如下:
我在配置了一个request bean,
<bean id="AAAA" class="com.AAAA" scope="request"> 
  <aop:scoped-proxy />  
</bean> 
在网页调用的时候,没有问题。
但是在后台自动调用的时候,报错:
Error creating bean with name 'scopedTarget.AAAA': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton请问大家,有什么办法解决吗?前提不能修改scope。