SpringBoot上传文件报错了:
The multi-part request contained parameter data (excluding uploaded files) that exceeded the limit for maxPostSize set on the associated connector.
提示上传的文件超过了maxPostSize,所以去修改:

# 设定Httppost数据大小 
tomcat.max-http-form-post-size=102400000
# 上传文件的大小限定
servlet.multipart.max-file-size=100MB
# 上传请求数据的大小限定;限定请求的总数据大小
servlet.multipart.max-request-size=100MB
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐