【转载】关于easyui Resource interpreted as Document but transferred with MIME type applica
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