錯誤
Request header is too largespring
分析
請求頭內容過大swift
解決方案
1.SpringBoot版本1.3.8.RELEASE在配置文件中添加:
若是springboot內置tomcat服務器使用下面配置:tomcat
server: tomcat: max-http-header-size: 10000000
若是springboot內置jetty服務器使用下面配置:springboot
server: jetty: max-http-header-size: 10000000
2.SpringBoot版本2.0.3在配置文件中添加:
server: max-http-header-size: 10000000
我的微信公衆,常常更新一些實用的乾貨:服務器
image.png