Spring MVC json报406错误的解决办法 Failed to load resource: the server responded with a status of 406

@ResponseBody & @RequestBodyhtml @RequestBody 将 HTTP 请求正文插入方法中,使用适合的HttpMessageConverter将请求体写入某个对象。java @ResponseBody 将内容或对象做为 HTTP 响应正文返回,使用@ResponseBody将会跳过视图处理部分,而是调用适合HttpMessageConverter,将返回值写入输出
相关文章
相关标签/搜索