The resource identified by this request is only capable of generating responses with characteristics
2016-10-19 15:52
363 查看
场景:今天用Spring MVC 框架搭建工程时,在Controller中加入@ResponseBody注解时,报异常:
The resource identified by this request is only capable of generating responses with characteristics
not acceptable according to the request "accept" headers ().
以前也遇到过这个正常不过的异常,但今天按照先前的思路解决时发现没有任何作用,异常依旧,整整一个上午就在不断尝试中:搜索资料、寻找答案、配置工程、一遍遍测试、终究以失败而告终,最后索性放弃,下午上班时突然想起这种问题貌似跟另外一个最近刚解决的问题相似,所以,便尝试性在web.xml中修改:
修改前:
修改后:
后记:当使用最新版本的Spring MVC 和Hibernate 框架时,遇到该问题时除了网上能搜到的该异常的解决方案外,如果问题仍未解决请尝试该种方法,即:web.xml 中不能以html(URL后缀请求方式),改用其他尝试,祝大家顺利解决!!!
@一只会飞的小白兔
The resource identified by this request is only capable of generating responses with characteristics
not acceptable according to the request "accept" headers ().
以前也遇到过这个正常不过的异常,但今天按照先前的思路解决时发现没有任何作用,异常依旧,整整一个上午就在不断尝试中:搜索资料、寻找答案、配置工程、一遍遍测试、终究以失败而告终,最后索性放弃,下午上班时突然想起这种问题貌似跟另外一个最近刚解决的问题相似,所以,便尝试性在web.xml中修改:
修改前:
akchengtou*.html
修改后:
akchengtou*.action
后记:当使用最新版本的Spring MVC 和Hibernate 框架时,遇到该问题时除了网上能搜到的该异常的解决方案外,如果问题仍未解决请尝试该种方法,即:web.xml 中不能以html(URL后缀请求方式),改用其他尝试,祝大家顺利解决!!!
@一只会飞的小白兔
相关文章推荐
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- SpringMVC_The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- 【406错误】 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- 问题:The resource identified by this request is only capable of generating responses with characterist
- 错误406 The resource identified by this request is only capable of generating responses with character
- description The resource identified by this request is only capable of generating responses with cha
- 解决The resource identified by this request is only capable of generating responses with characteristi
- 26 记一次 SpringMVC 406 The resource identified by this request is only capable of generating responses
- Spring mvc 406错误:The resource identified by this request is only capable of generating responses wit
- 错误The resource identified by this request is only capable of generating(HTTP Status 406)
- The resource identified by this request is only capable of generating respon
- @ResponseBody 406:The resource identified by this request is only capable of generating respon......
- Installation failed with message...It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.