springcloud项目,请求某个服务时报错如下:
An attempt was made to write more data to the response headers than there was room available in the buffer.
Increase maxHttpHeaderSize on the connector or write less data into the response headers
原因是请求头或者响应头数据太大导致,添加配置文件:
server.max-http-header-size=65546
注意不要使用server.tomcat.max-http-header-size
。亲测有效