FileSizeLimitExceededException: The field files exceeds its maximum permitted size of 1048576 bytes
FileSizeLimitExceededException: The field files exceeds its maximum permitted size of 1048576 bytes.
日常记录遇到得小问题~
在springboot项目中上传文件超过1Mb报错,解决办法:在application.yml中增加
servlet:
multipart:
max-file-size: -1
max-request-size: -1
enabled: true
其中-1代表不限制大小,也可以配置
原创
2020-09-29 15:10:32 ·
1272 阅读 ·
0 评论