Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required List parame

问题:Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required List parameter ‘customerNoList’ is not present]
原因:请求体过大,超出了tomcat限制的2M大小
解决方案:使用的是springboot内嵌的tomcat,通过在application.properties 或者 bootstrap.yaml 中修改配置

server:
  tomcat:
  	# -1 表示不限制请求大小
  	# 单位是字节 byte
    max-http-form-post-size: -1

使用的springboot版本:2.3.9.RELEASE,之前查询的都是max-http-post-size这个属性,一直不起效,差点怀疑人生
该属性在spring-boot-autoconfigure-2.3.9.RELEASE.jar 中的org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat#maxHttpFormPostSize

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值