Resource interpreted as Document but transferred with MIME type application
今天在前台展示页面的时候出现了这个警告,大概意思就是页面需要返回text/html格式的数据,而后台返回的是json数据格式的。
我看了后台返回的数据
@ResponseBody
@RequestMapping(value = "form", produces = "application/json;charset=utf-8")
produces 表示服务器指定返回的内容类型,仅当req...
原创
2018-08-07 16:38:38 ·
28236 阅读 ·
3 评论