组的 Grails Urlmapping 404

Grails Urlmapping 404 for group

我在 grails 中用组组织了我的 url 映射。

Url映射中的示例:

class UrlMappings {

static mappings = {
    group "/rest", {
        "/" {
            controller = "rest"
            action = "index"
        }
        "/method1" {
            controller = "rest"
            action = "method1"
        }           
    }
    "/webservice/" {
        controller = "webservice"
        action = "index"
    }
}

我想要的:当调用 Url 时 /rest/notexists,我想要此路径的 404。但只针对 /rest 组,所以 404 应该属于组 rest。其他 404 由我的 backbone 路由器处理。

有什么想法吗?

我在休息组的最后用一个catch all解决了它:

 "/**" {
            controller = "rest"
            action ="notFound"
 }