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.
getRequestURI()とまったく同じメソッドが必要ですが、リファラーで使用したいと考えています。これは可能ですか?
に変身http://www.example.com/my/path?vars=trueしたい/my/path
http://www.example.com/my/path?vars=true
/my/path
このようなものが欲しいですか?
String refererURI = new URI(request.getHeader("referer")).getPath();