digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

 

前端调用这个方法报错:

 

 

HTTP Status 406 – Not Acceptable


Type Status Report

Description The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.

方法使用了@ResponseBody来返回json,然后注解 produces="text/html;charset=UTF-8" 又说返回的是 text/html,互相矛盾,去掉注解  produces="text/html;charset=UTF-8"  就好了。

 

posted on 2019-09-27 21:47  digdeep  阅读(2841)  评论(0编辑  收藏  举报
不懂数据库和Web安全的架构师不是一个好的程序员。