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
答案 0 :(得分:1)
Webflow从未移植到Grails 3.您无法使用该版本,因为它是专为Grails 2设计的。