Spring mvc 如何代理将请求从预处理传递到远程服务器?[春季MVC] 我有一个条件,在这个条件下,我希望根据我正在检查的条件来服务我的请求,如果条件得到满足,我希望代理将请求传递给另一个远程服务器。
预处理-Spring mvc 如何代理将请求从预处理传递到远程服务器?[春季MVC] 我有一个条件,在这个条件下,我希望根据我正在检查的条件来服务我的请求,如果条件得到满足,我希望代理将请求传递给另一个远程服务器。,spring-mvc,url-routing,interceptor,proxypass,Spring Mvc,Url Routing,Interceptor,Proxypass,预处理- @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if(condition){ //i want to proxy pass here to remote server } return true; }
@Override
public boolean preHandle(HttpServletRequest request,
HttpServletResponse response, Object handler) throws Exception {
if(condition){
//i want to proxy pass here to remote server
}
return true;
}