目的:在springboot2.0上面配置上传文件大小
1、application.properties
spring.servlet.multipart.max-file-size=50Mb
spring.servlet.multipart.max-request-size=200Mb
2、application.yml
spring:
servlet:
multipart:
enabled: true
max-file-size: 20MB
max-request-size: 200MB