2. servlet-context.xml 파일에 웹 플로우를 설정합니다.
코드 15-17 servlet-context.xml
<?xml version="1.0" encoding="UTF-8"?>
➊
<beans:beans
...
xmlns:webflow="http://www.springframework.org/schema/webflow-config"
xsi:schemaLocation="...
...
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/webflow-config
http://www.springframework.org/schema/webflow-config/spring-webflow-config.xsd">
...
➋
<webflow:flow-registry id="flowRegistry">
<webflow:flow-location path="/WEB-INF/flows/order/order-flow.xml" id="order"/>
</webflow:flow-registry>
<webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry"/> ➌
➍
<beans:bean id="flowHandlerMapping"
class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<beans:property name="flowRegistry" ref="flowRegistry"/>
</beans:bean>
<beans:bean id="flowHandlerAdapter"
➎
class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<beans:property name="flowExecutor" ref="flowExecutor"/>
</beans:bean>
</beans:beans>