Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Grails 应用程序中,我有两个过滤器来保护我的所有控制器的每个操作(控制器:' ',操作:' ')。如何指定 filter1 在 filter2 之前执行?
您可以在过滤器类中指定dependsOn属性,如下所示:
class SecondFilters { def dependsOn = [FirstFilters] def filters = { ... } }