可以在application.yml文件中添加以下代码即可解决
# 配置Tomcat端口 server: tomcat: # post 提交文件大小 -1为不限制大小 max-http-post-size: -1