我正在尝试测试Spring Web Flow,并且无法根据我正在使用的映射来访问流程。我确定我必须遗漏一些简单的东西,但这是我的设置...
的web.xml:
<servlet>
<servlet-name>accommodations</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>accommodations</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/datasource-config.xml
/WEB-INF/security-config.xml
/WEB-INF/webflow-config.xml
/WEB-INF/aop-config.xml
</param-value>
</context-param>
webflow配置:
<flow:flow-registry id="flowRegistry" base-path="/WEB-INF/flows/" >
<flow:flow-location-pattern value="**/*-flow.xml"/>
</flow:flow-registry>
<flow:flow-executor id="flowExecutor" flow-registry="flowRegistry"/>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="flowRegistry" ref="flowRegistry"/>
</bean>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<property name="flowExecutor" ref="flowExecutor"/>
</bean>
</beans>
flow xml defination是&#34; WEB-INF / flows / accommodation / accommodation-flow.xml&#34;中的位置, 所以我的理解是/住宿应该映射到流程。
当我将浏览器指向/ accommodation时,我会收到404。
我犯了什么错误??