더북(TheBook)

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>
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.