I am working on FileStore application, FileStore is a Spring boot application.
we want didn't to publish the URL of FileStore application, We wanted to put Zuul application,which will work like proxy.I tried basic Zuul gateway example. It all works good for normal request following below example
But it fails for mulitpart request. Can anyone have example for support multipart request using Zuul proxy.
We are trying to upload large files via Zuul proxy...
PreFilter Code:
public class MyPreFilter extends ZuulFilter{
@Override
public String filterType() {
return "pre";
}
@Override
public int filterOrder() {
return 1;
}
@Override
public boolean shouldFilter() {
return true;
}
@Override
public Object run() {
RequestContext ctx = RequestContext.getCurrentContext();
HttpServletRequest request = ctx.getRequest();
log.info(String.format("%s request to %s", request.getMethod(), request.getRequestURL().toString()));
return null;
}
}
Thanks in advance.