配置Spring項目http請求body大小

    build.gradle裏面添加了依賴spring-boot-starter-web,這個依賴默認使用tomcat做爲底層web容器。若是前端有提交比較大的文件要修改容許的最大文件大小,能夠在application.properties中使用:html spring.http.multipart.max-file-size=200MB spring.http.multipart.max-r
相關文章
相關標籤/搜索