學習筆記,記錄一下Spring Web Flow學習過程:
Spring Web Flow的開始狀態,
在SWF1中流開始狀態使用:
<start-state idref="showid"/>
showid:指定開始狀態的ID.
在SWF2中,已經廢棄獨立的start-state狀態節點.使用
<flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd" start-state="startView"> </flow>在flow標籤中使用start-state來進行明確指定。
如果不使用上面明確指定方式,那麼默認flow定義文件中第一個狀態即爲開始狀態.