嗨,我收到此错误,我不知道为什么?
文件:main-flow.xml缺少开始状态。在流程中添加至少一个状态
create table t2 if not exists select type, time, sum(full) num_full, count(*) count
from t1
group by type,time
order by type,time;
文件pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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.3.xsd">
<view-state id="start" view="start.xhtml">
</view-state>
答案 0 :(得分:0)
您必须将start-state参数添加到流标记。
<?xml version="1.0" encoding="UTF-8"?>
<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.3.xsd"
start-state="start">
结束状态不是要求它运行的必要条件,但当然建议使用结束状态来清理该实例的资源。
<end-state id="end"/>