413 Request Entity Too Large&The field uploadFiles exceeds its maximum permitted size of 1048576 byt

問題場景:使用nginx做代理轉發一個tomcat發佈的springBoot web應用,上傳圖片時在service層做了圖片大小2M的校驗,但是上傳圖片時出現以上兩個錯誤。 問題1:nginx 413 Request Entity Too Large  問題分析:從錯誤信息判斷是當前上傳的圖片超過了nginx的請求體設置的最大值,查看nginx文檔,在覈心模塊中有關於請求體設置的說明,http:
相關文章
相關標籤/搜索