【发布时间】:2018-09-03 10:50:05
【问题描述】:
我正在使用 Grails v3.2.9
在官方文档中,我为mapping to http methods 找到了以下内容:
static mappings = {
"/product/$id"(controller:"product", action: "update", method: "PUT")
}
但这还不够。我需要的是有一个映射,它基于 HTTP 方法映射到不同的操作(在同一个控制器中)。
有什么想法吗?
【问题讨论】:
标签: grails url-mapping http-method controller-action