Springboot项目前端调接口报400JAY.LIN 收录于 报错解决 2023-07-14 约 198 字 预计阅读 1 分钟 目录 问题解决Springboot项目前端调接口报400问题后端使用swagger或postman测试接口均可访问,前端调接口报400。400错误一般是传参错误所致,但反复确认后前端传参无误。解决F12后发现前端发送请求时headers中的内容非常长,springboot配置文件中加入配置 server.max-http-header-size=102400,即可解决。但这个参数并非越大越好,具体可自行搜索。Please enable JavaScript to view the comments powered by Giscus.