原文:SpringBoot 項目遇到錯誤: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

SpringBoot項目腦袋憨憨的遇到了如下報錯, 解決辦法是,別在GetMapping里面用RequestBody,改用RequestParam ...

2020-08-25 14:48 0 691 推薦指數:

查看詳情

解決springboot項目請求出現非法字符問題 java.lang.IllegalArgumentException:Invalid character found in the request target. The valid characters are defined in RFC

springboot版本: 2.1.5 最近使用springboot搭建了一個App后台服務的項目,開發接口的時候在本機使用postman工具做請求測試,請求返回一直很正常,但是在前端開發使用h5請求后台服務的時候,前台請求400,瀏覽器提示請求跨域 但是我在提供接口請求的入口處做了跨域處理 ...

Sat Jul 20 00:19:00 CST 2019 1 5245
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM