解决 Invalid character found in method name. HTTP method names must be tokens 异常信息

时间:2023-03-09 13:29:12
解决 Invalid character found in method name. HTTP method names must be tokens 异常信息

解决 Invalid character found in method name. HTTP method names must be tokens 异常信息

一个线上环境出现异常,不是spring boot。

解决方法:

server.xml中加上maxHttpHeaderSize="8192"

springBoot 1.x则是在application.properties文件中配置【server.tomcat.max-http-header-size=8192】