上传文件时报 413 Request Entity Too Large
如果使用了ngin静态转发:
修改nginx.conf配置,在http{}中加入:
client_max_body_size 3024m;
然后重启nginx
后台限制:
springBoot在配置文件中添加:
servlet:
multipart:
max-file-size: 3024MB
max-request-size: 3024MB
修改nginx.conf配置,在http{}中加入:
client_max_body_size 3024m;
然后重启nginx
springBoot在配置文件中添加:
servlet:
multipart:
max-file-size: 3024MB
max-request-size: 3024MB