サンプルの grails プロジェクトがあり、デフォルトのホームページを変更したいので、それに応じてUrlMappings.grrovy
ファイルを変更しました
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
// "/"(view:"/index")
"/"(controller: "LoginController", action:"/login")
"500"(view:'/error')
}
}
問題は、index.gsp が見つからないという 404 エラーが発生することです。
私がしたことは、アクションログインを持つ新しいコントローラーを追加したことで、このエラーが発生しました。を使用してgrails 2.2.4
います。