springcloud项目钟,请求下载接口时报错如下:
org.apache.coyote.http11.HeadersTooLargeException: 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