Krt*_*lta 7 java spring controller request
为了让您了解,我们正在使用基于Tomcat 6.0.29的自定义服务器.我们正在使用Java和Spring进行开发.
假设我有一个链接,可以将您从http:// localhost/display转到http:// localhost/save.在http:// localhost/save的控制器中,我可以以某种方式从请求参数中获取http:// localhost/display吗?
request.getRequestURL() 似乎得到了当前页面的网址.
Era*_*dan 10
这应该给你推荐页面(大多数情况下)
request.getHeader("referer");
Run Code Online (Sandbox Code Playgroud)
详情请见http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14
而这里对请求API的详细信息