【发布时间】:2012-11-08 23:20:33
【问题描述】:
是否可以使用 Grails 2 Web 应用程序过滤器定义多个不同的 URI?
例如:
def filters = {
someFilterMethod(uri: '/auth/**|/*/user/modify') {
...
}
}
【问题讨论】:
是否可以使用 Grails 2 Web 应用程序过滤器定义多个不同的 URI?
例如:
def filters = {
someFilterMethod(uri: '/auth/**|/*/user/modify') {
...
}
}
【问题讨论】:
This is an open issue 计划在 Grails 2.3 中修复(根据 JIRA 条目)。
作为一种变通方法,您可以提取公共代码块以供多种过滤方法使用。
【讨论】: