Uploading large files via Zuul

别说谁变了你拦得住时间么 提交于 2019-12-05 04:54:41

I've found a solution. It's basically described here:

http://cloud.spring.io/spring-cloud-static/spring-cloud.html#_uploading_files_through_zuul

What I did to make it work. Just step by step:

  1. To bypass the Spring DispatcherServlet I changed the URL:

From: http://localhost:8081/MyService/file

To: http://localhost:8081/zuul/MyService/file

  1. Preserved disabling of Spring multipart upload:

    spring:
        http:
            multipart:
                enabled: false
    

The following header is not required. Transfer-Encoding: chunked

I tried to upload a large file without that one and it was fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!