如何配置springboot 请求参数限制 yaml文件的配置 server: max-http-header-size: 16KB #设置最大header长度,默认是8KB tomcat: max-http-form-post-size: 128MB #设置最大请求长度,默认是2MB 如果未配置,前端post请求长度超过2MB时,接收到的参数将会是空 此处是tomcat的配置,其它服务器的配置方式类似。