在一个过滤器中,如何匹配同一控制器的多个动作?
def filters = {
organisationDelete(controller: "organisation", action: "confirmDelete, delete") {
//...
}
}
Run Code Online (Sandbox Code Playgroud)
在这个映射中,我将"confirmDelete"作为GET并将"删除"作为POST
在旧的ACEGI插件中,我可以用逗号分隔动作.虽然,现在使用Spring Security Core我必须使用管道.因此,以下解决了这个问题
action: "confirmDelete|delete"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2197 次 |
| 最近记录: |