java.lang.IllegalArgumentException: Invalid character found in method name. HTTP

 前几天,tomcat运行时报了如下错误:Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens ,找了半天才发现原来是自己在nginx配置重定向时,url地址大小写问题,问题还原如下:

nginx中某一部分的配置

location ^~ /activity/publishRecord

                        {

                                      

                                         proxy_pass  http://xxx.xxx.xxx.xxx:8080;

                        }

而实际的访问地址:/activity/publishrecord   ,中间的r大写了,publishRecord只是springmvc中的一个方法名,复制时没注意错了,导致现在的结果

猜你喜欢

转载自huiccsu.iteye.com/blog/2344602