springmvc @RequestParam 获取参数 HTTP Status 400 - Required String parameter 'xx' is not present

公司换用react做前后端分离之后,发现用@RequestParam不能获取前台传回来的值,使用Postman发送模拟请求的时候,Content-Type == application/x-www-form-urlencoded 可以接受到请求,而 Content-Type == application/json 的时候参数获取不到。并且会报错:HTTP Status 400 - Required
相关文章
相关标签/搜索