grails 3 webflow 不工作
grails 3 webflow not working
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
Webflow 从未移植到 Grails 3。您不能使用该版本,因为它是为 Grails 2 设计的。
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
Webflow 从未移植到 Grails 3。您不能使用该版本,因为它是为 Grails 2 设计的。