Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在我的项目中更改语言环境时,会得到一个这样的链接:
http://localhost:8080/someapp/?lang=en
我如何获得宁静风格的链接,例如:
http://localhost:8080/someapp/en
在 URLMapping中的 param lang中定义,例如:
"/$lang?/contact_us"(controller: "pages", action: "contact_us")
使用createLink正确生成链接。