続 GrailsのScaffoldingとWicketプラグインの共存について
とりあえず、
とすることで、
class WickethelloUrlMappings {
static mappings = {
"/$controller/$action?/$id?" {
constraints {
controller( notEqual : "app" )
}
}
}
}
- 「http://localhost:8080/wickethello/app」は、"Hello World!"と表示
- 「http://localhost:8080/wickethello/user」は、Userの一覧画面が表示
となりました(^_^)V
# さっきよりかはましですが... 何故か、constraintsの中でvalidatorが使えなかった... orz
これで、使用するコントローラを全て書く必要はなくなりました。