简体   繁体   English

grails 3 webflow不起作用

[英]grails 3 webflow not working

Long time user of grails but, this is my first grails3 project. Grails的长期用户,但这是我的第一个grails3项目。 The webflow plugin doesn't seem to be working for me. 该webflow插件似乎不适用于我。

I get 404 errors when I go to {proj}/quote/new 我转到{proj} / quote / new时收到404错误

build.gradle : build.gradle

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

Controller: 控制器:

@Secured('ROLE_ANONYMOUS')
class QuoteController {

    def newFlow = {

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

Views: 观看次数:

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

Webflow从未移植到Grails3。您不能使用该版本,因为它是为Grails 2设计的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM