application.properties中加入: spring.servlet.multipart.max-file-size=10MB spring.http.multipart.max-request-size=100MB 大小自定义