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.
我想使用类似于 HttpServletRequest.getPathInfo(); 它返回请求的整个路径。这在java中使用,我试图在Grails中找到类似的东西。
谢谢。
该request对象是 Servlet API 的 HttpServletRequest 接口的一个实例。
request
您应该在您的控制器中尝试:(为了在网页中显示请求的整个路径)
def index = { render request.forwardURI }