一、原因
? ? ? ? 在進行本地小程序與服務端請求時,由于加了簽名認證,訪問接口時報錯
Spring boot端
小程序端
?
二、解決方案
2.1? 更改訪問路徑
- ?將https:更換成http:
示例:https://localhost:8080? 改為??http://localhost:8080
2.2其他原因
- ? ? ?ssl證書到期了
- Tomcat的header緩沖區(qū)大小不夠
參考鏈接? ?
? ? ? 3.修改端口號文章來源:http://www.zghlxwxcb.cn/news/detail-730988.html
server.xml中加上maxHttpHeaderSize="8192"??文章來源地址http://www.zghlxwxcb.cn/news/detail-730988.html
到了這里,關于踩坑:Invalid character found in method name. HTTP method names must be tokens的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!