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

一站式 AI 云服务平台

更多推荐