我知道如何在 Java 代码中自动装配 http 请求对象:
@Resource
private HttpServletRequest request;
我想在 xml conf 中做类似的事情。我试图实例化的 bean 将一个 http 会话对象作为构造函数参数:
<bean class="..." scope="request">
<constructor-arg>
???
</constructor-arg>
</bean>