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.
我有一个代理服务器 (JAX-RS),我想将一些请求转发到另一台服务器。我可以做到这一点,通过获取原始请求,从中获取所有标头和数据,并一一设置 HttpURLConnection,但我认为它效率不高。
有没有办法
或者
RequestDispatcher.forward(request) 或 sendredirect() 方法有什么问题?