您的位置:首页 > 移动开发

关于easyui Resource interpreted as Document but transferred with MIME type application/json

2015-06-24 10:44 519 查看
PS:项目是用SpringMVC+easyui搭建的

今天用谷歌调试测试新写的保存功能,发现保存成功之后出现Resource interpreted as Document but transferred with MIME type application/json 

如图:



猜想会出现的原因是服务器响应的content-type值是application/json,而谷歌浏览器所期望的值应该是text/html。

所以翻回配置文件查看,找到org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
Bean 更改値为text/html。

重新启动项目调试,果然没有再出现Resource interpreted as Document but transferred with MIME type application/json 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: