grails アプリにアクセスするために URL を短縮しようとしています。現在、私が取得できる最短は
http://myserver:8080/helloWorld/helloWorld/
HelloWorld はコントローラー名とアプリ名です。どういうわけかそれを短くすることはできますか?
http://myserver:8080/helloWorld/
URL マッピングを
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/"(view:"/index")
"500"(view:'/error')
}
}