【发布时间】:2014-11-19 09:15:53
【问题描述】:
Spring Web Flow 提供了额外的 bean 范围,例如 flow、conversation、flash 等。我可以使用 var 在 flow.xml 中定义流范围 bean,或者我可以将值设置为新的范围变量。我如何在 spring 应用程序上下文 xml 文件中定义它。我尝试使用这种模式:
<bean id="abc" class="abc" scope="flow"/>
我收到未定义范围的错误。我在谷歌上搜索并找到了这个东西 http://blog.springsource.org/2007/05/08/spring-web-flow-bean-scopes-and-jsf/
但不知道如何在 spring web flow 2.3 中启用它
【问题讨论】:
标签: spring scope spring-webflow spring-webflow-2