360SDN.COM

关于easyui Resource interpreted as Document but transferred with MIME type appli

来源:  2017-06-22 13:24:11    评论:0点击:

来源:http://blog.csdn.net/u010161082/article/details/46618947
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 



参考:Resource interpreted as Document but transferred with MIME type application/json

 


为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权