Grails beforeInterceptor异常

时间:2014-09-17 20:27:33

标签: grails

我想指定多个函数作为我的beforeInterceptor的一个例外,如果有可能,有人可以告诉我下面语法的正确版本吗?

def beforeInterceptor = [action: this.&auth, except: 'authenticate','index']

感谢。

1 个答案:

答案 0 :(得分:2)

遵循Grails中的其他功能我会假设语法是使用字符串列表。例如:

def beforeInterceptor = [action: this.&auth, except: ['authenticate','index']]
相关问题