2

我有这个:

static mappings = {
   "/a/b/$id/stuff"(controller: "stuff", action "action1" )
   "/a/b/$id/stuff/$stuffId"(controller: "stuff", action "action2" )
   "/a/b/$id/stuff/$stuffId/c"(controller: "stuff", action "action3" )
}

我可以击中action1and action2,但我不能击中action3,因为它返回 a 404

这是怎么回事?

4

2 回答 2

1
def method(){

}

不管用。

def method = {


}

将工作。

于 2011-03-04T19:09:59.873 回答
0

你检查过你的观点的代码吗?我想如果它不能编译,你会得到一个 404。至少,这就是我所经历的。

于 2011-03-04T17:03:02.727 回答