我有映射:
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
} // i used scaffolding and i think this is required by the generated stuff
'/'(controller:'home') //for the home page
'/$param1?/$param2?'(controller:'search') //for a search page
需要在浏览器中显示的 url 是:
www.site.com/ - 主页
www.site.com/keyword1/keyword2 - 通过这些可选关键字进行搜索
这似乎可行,但我的问题是:我可以期望这是正确的,还是在某些情况下 grails 会把事情搞混?