Spring Boot Request header is too large

分析:前端提交数据或者文件内容时由于数据量过大,使得超出Request 的 postsize大小。

解决方案:基于Spring boot 的解决方案

1: Request header is too large 

  在application.properties 中配置 server.max-http-header-size=100000  

  在application.yml 中配置  server: max-http-header-size: 100000

 

注意事项:在tomcat、nignx等都有配置这个属性,需要关注具体是那一块数据配置大小

posted @ 2019-08-01 14:39  阿朗~  阅读(4226)  评论(0编辑  收藏  举报