!19 修改 修复上传文件超过1M报错

Merge pull request !19 from 月夜/auto-5301109-master-1645083862508
2.X
疯狂的狮子Li 2022-02-17 07:51:21 +00:00 committed by Gitee
commit b6f4302baa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ spring:
pathmatch:
# 适配 boot 2.6 路由与 springfox 兼容
matching-strategy: ANT_PATH_MATCHER
servlet:
multipart:
# 整个请求大小限制
max-request-size: 20MB
# 上传单个文件大小限制
max-file-size: 10MB
#jackson配置
jackson:
# 日期格式化