关于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
今天用谷歌调试测试新写的保存功能,发现保存成功之后出现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
相关文章推荐
- Unity3D实践系列06,球体撞击物体游戏
- Windows Server 2012 R2 DirectAccess功能测试(3)―App2服务器安装及配置
- 我常用的AndroidStudio快捷键
- android仿微信录制短视频并播放
- Metaio in Unity3d 教程--- 二. 创建自己的Application
- app第三方登录利弊
- iOS 9适配系列教程:后台定位
- iOS开发-清理缓存功能的实现
- spring获取applicationContext.xml中bean内容
- Metaio in Unity3d 教程--- 一. 搭建环境,运行官方案例
- 【Android基础】点击Back键退出应用程序
- 6个值得推荐的Android开源框架简介
- ios中陀螺仪CoreMotion的用法
- iOS深拷贝和浅拷贝
- iOS 多线程GCD
- Xamarin iOS教程之自定义视图
- Android基本控件之ImageView
- Android的Activity屏幕切换动画(一)-左右滑动切换
- Android.mk添加第三方jar包
- nagios+ganglia监控系统