hello你好,我是辰兮,又来小结一下最近遇到的异常问题,分享获取新知,希望对你有帮助。
最近用postman做测试的时候后台抛出了这样的异常
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
不合法的参数异常
仔细的查阅了一下这样的异常有很多原因,你要根据后面具体报错来看
我的是具体报错原因:Invalid character found in method name. HTTP method names must be tokens
本是http的请求 错误使用https方式请求 就会报该错
如何解决:
我这引起的原因是请求地址是https
把https改成http就可以了
The best investment is to invest in yourself.
2020.08.29