Я написал Spring-Web-поток в моем проекте. Когда я запускаю поток, он показывает ошибку, как
Caused by:org.springframework.webflow.engine.model.builder.FlowModelBuilderException : Could not access the XML flow definition at ServletContext resource /WEB-INF/webapp/xxx-webflow.xml
, получаю вышеуказанную ошибку и отображается как Невозможно получить модель для этого потока.когда я пытаюсь получить доступ к своему потоку, найдите нижеприведенный код для ссылки.
<webflow:flow-executor id="flowExecutor" />
<webflow:flow-registry id="flowRegistry"
flow-builder-services="flowBuilderServices" base-path="/WEB-INF">
<!-- here the id is mapped to invoke this flow -->
<webflow:flow-location id="forgotPasswordFlow" path="/webapp/xxx-webflow.xml" />
</webflow:flow-registry>
<webflow:flow-builder-services id="flowBuilderServices"
view-factory-creator="viewFactoryCreator" />
<bean id="viewFactoryCreator"
class="org.springframework.webflow.mvc.builder.MvcViewFactoryCreator">
<property name="viewResolvers">
<list>
<ref bean="viewResolver" />
</list>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/templates/" />
<property name="suffix" value=".html" />
</bean>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter"><property name="flowExecutor" ref="flowExecutor" />
</bean>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="flowRegistry" ref="flowRegistry" />
<property name="order" value="0" />
</bean>
and my xxx.xml file is
<view-state id="viewForgotPasswordForm" view="/templates/casForgetPasswordView.html"
model="forgotPasswordCredential">
<binder>
<binding property="userId" required="true" />
<binding property="tenantId" required="true" />
</binder>
<transition on="submit" bind="true" validate="true"
to="forgotPasswordWebflowInitialization" />
</view-state>