grails 3 webflow无法正常工作

时间:2017-06-16 10:35:54

标签: grails spring-webflow

Grails的长期用户,但这是我的第一个grails3项目。 webflow插件似乎对我不起作用。

当我转到{proj} / quote / new

时,我收到 404错误

的build.gradle

dependencies {
    compile "org.grails.plugins:webflow:2.1.0"
}

控制器:

@Secured('ROLE_ANONYMOUS')
class QuoteController {

    def newFlow = {

        step1{
            on("next").to("step2")
        }
        step2{
            on("next").to("finish")
        }
        finish{
        }
    }

查看:

/views/quote/new/step1.gsp
/views/quote/new/step2.gsp
/views/quote/new/finish.gsp

1 个答案:

答案 0 :(得分:1)

Webflow从未移植到Grails 3.您无法使用该版本,因为它是专为Grails 2设计的。