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" )
}

ヒットすることはできますがaction1、を返すため、action2ヒットすることはできません。action3404

どうしたの?

4

2 に答える 2

1
def method(){

}

動作しないでしょう。

def method = {


}

動作します。

于 2011-03-04T19:09:59.873 に答える
0

ビューのコードを確認しましたか?コンパイルできない場合は、404が返されると思います。少なくとも、それは私が経験したことです。

于 2011-03-04T17:03:02.727 に答える