HTTP Status 406 – Not Acceptable
HTTP not status
2023-09-11 14:17:26 时间
前端调用这个方法报错:
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" 就好了。
相关文章
- http和https的区别,HTTPS工作原理,状态码,cookie和session对于HTTP有什么用
- HTTP深入浅出 http请求
- How can I check that my cookies are only sent over encrypted https and not http?
- http接口{“message“: “The browser (or proxy) sent a request that this server could not understand.“}
- HTTP 错误 404.15 - Not Found 请求筛选模块被配置为拒绝包含的查询字符串过长的请求。
- Python文件下载、Http服务(3为http.server、2为SimpleHTTPServer)
- Jsp中无法使用EL表达式的解决方法错误Can not find the tag library descriptor for http://java.sun.com/jsp/jstl/core
- Qt发送HTTP请求
- 《HTTP Client官方指南》翻译邀请
- Failed to load http://localhost:8080/team.php: Request header field x-jwt-header is not allowed by Access-Control-Allow-Headers in preflight response.
- HTTP状态码列表
- ubuntu 18.04在更新软件库时出现E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet...
- Caused by: java.lang.RuntimeException: Could not find conduit initiator for address: xxxxxx and transport: http://schemas.xmlsoap.org/soap/http
- Http中URI协议 和URL协议的区别和联系
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- HTTP 404 Not Found Error with .woff or .woff2 Font Files
- 深入理解HTTP协议及原理分析之缓存(3种缓存机制)
- Nginx配置http强制跳转到https
- servlet 服务器HTTP请求头说明
- 解决“HTTP/1.1 405 Method not allowed”问题
- jsp头部报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- nginx 7层http代理获取真实ip
- 【树莓派】 Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/c/chkconfig/chkconfig_11.4.54.60.1debian1_all.deb Could not resolve 'mirrordirector.raspbian.org'
- HTTP 错误 404.0 - Not Found 您要找的资源已被删除、已更名或暂时不可用。
- Laravel 5.1 报错:[AppHttpRequestsRequest] is not instantiable
- http 之 HTTP_X_FORWARDED_FOR