Fix WebProxyInvoker
This commit is contained in:
@@ -75,7 +75,7 @@ public class WebProxyInvoker {
|
|||||||
|
|
||||||
DispatcherServlet servlet = new DispatcherServlet(applpicationContext);
|
DispatcherServlet servlet = new DispatcherServlet(applpicationContext);
|
||||||
servlet.init(servletConfig);
|
servlet.init(servletConfig);
|
||||||
this.mvc = new ProxyMvc(servlet, applpicationContext.getBeansOfType(Filter.class).values().toArray(new Filter[0]));
|
this.mvc = new ProxyMvc(servlet, applpicationContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -118,7 +118,7 @@ public class WebProxyInvoker {
|
|||||||
|
|
||||||
ProxyHttpServletResponse httpResponse = new ProxyHttpServletResponse();
|
ProxyHttpServletResponse httpResponse = new ProxyHttpServletResponse();
|
||||||
try {
|
try {
|
||||||
this.mvc.perform(httpRequest, httpResponse);
|
this.mvc.service(httpRequest, httpResponse);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user