必须同时对Maximum upload size set 和omcat maxPostSize set进行配置才会有用
application配置文件中加入以下:
# Max file size.
spring.servlet.multipart.max-file-size=300MB
# Max request size.
spring.servlet.multipart.max-request-size=400MB
#设定HttpHeader请求头大小500MB
server.tomcat.max-http-header-size=524288000
#设定Httppost数据大小
server.tomcat.max-http-post-size=524288000