Spring Boot: ClassNotFoundException when configuring maxUploadSize of CommonMultipartResolver

后端 未结 4 1964
庸人自扰
庸人自扰 2020-12-13 11:12

I\'m using Spring Boot for my web application and I\'m trying to configure the maxUploadSize of Spring\'s CommonMultipartResolver. Currently, it seems to be limited by a Spr

4条回答
  •  Happy的楠姐
    2020-12-13 11:57

    With spring-boot 1.5.3 you should use the following code in application.yml

    spring:
     http:
      multipart:
       max-file-size: 10MB
       max-request-size: 10MB
    

提交回复
热议问题