组的Grails Urlmapping 404

组的Grails Urlmapping 404,grails,Grails,我在grails中使用组组织url映射 URL映射的示例: class UrlMappings { static mappings = { group "/rest", { "/" { controller = "rest" action = "index" } "/method1" { controller = "rest" action =

我在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由我的主干路由器处理


有什么想法吗?

我在剩下的小组结束时解决了这个问题:

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

您应该能够定义嵌套在
组'/rest'