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 中启用它