`
OLDDAOG
  • 浏览: 2966 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Spring MVC + JSON = 406 Not Acceptable

 
阅读更多


缺少几个依赖包如下
<dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.2.3</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.2.3</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.2.3</version>
    </dependency>
 
分享到:
评论

相关推荐

    Whether mandatory donation is acceptable or not?

    Whether mandatory donation is acceptable or not?

    jackson-core-asl-1.9.13及jackson-mapper-asl-1.9.13架包.rar

    可用于Spring MVC框架,spring MVC中返回使用@ResponseBody注解返回时,后台没报错,就控制台显示406 Not Acceptable 原因是缺少jackson的包:jackson-core-asl-1.9.2.jar和jackson-mapper-asl-1.9.2.jar

    elasticsearch-head

    ## Synopsis ... ## Motivation This was created because ElasticSearch 5 removed the ability to run ElasticSearch Head as an Elastic Plugin. This offers an alternative to self-hosting in your own web ...

    jackson的包:jackson-core-asl-1.9.2.jar和jackson-mapper-asl-1.9.2.jar

    spring MVC中返回使用@ResponseBody注解返回时,后台没报错,就控制台显示406 Not Acceptable 原因是缺少jackson的包:jackson-core-asl-1.9.2.jar和jackson-mapper-asl-1.9.2.jar

    Resizes Images to sizes acceptable by half life for transiti

    Resizes Images to sizes acceptable by half life for transitioning into pldecal.wad files This code is incomplete... A Majority of the programming has been accomplished.

    node-contrib-mvcgenerator:一种基于简单的JSON配置来搭建MVC项目的工具

    node-contrib-mvcgenerator一种基于简单的JSON配置来搭建MVC项目的工具。 注意:此项目无需维护-此处存在更好的替代方法: : 配置文件示例: exports . config = { // filename extensions - acceptable formats: js...

    play-content-negotiation:Play框架的声明式内容协商

    不幸的是,这种方法存在问题:如果服务器需要返回406 Not Acceptable HTTP响应,则Play框架无法在响应中提供受支持的内容类型的列表,这对于开发人员编程客户端非常有帮助。用于您的Web应用程序。 play-content-...

    JSP页面报错列表查询

    406 Not Acceptable 指定的资源已经找到,但它的MIME类型和客户在Accpet头中所指定的不兼容(HTTP 1.1新)。 407 Proxy Authentication Required 类似于401,表示客户必须先经过代理服务器的授权。(HTTP 1.1新) ...

    ANSI-ASHRAE Standard 62.1-2019 Ventilation for Acceptable Indoor

    ANSI-ASHRAE Standard 62.1-2019 Ventilation for Acceptable Indoor

    json-api:与框架无关的JSON API(jsonapi.org)实现

    例如,它有助于正确地使用Unsupported Media Type (HTTP代码415)和Not Acceptable Unsupported Media Type (HTTP代码406)对无效请求做出响应。 您无需在每个请求上手动验证所有输入参数。 您可以配置服务支持...

    Java NIO原理和使用

     debug("NBTest: Channel not acceptable");  }  }  }  else  {  debug("NBTest: Select finished without any keys.");  }  } } private static void debug(String s) {  System.out.println(s); } ...

    C#实现过滤html标签并保留a标签的方法

    分享给大家供大家参考之用。具体方法如下: ... string acceptable = a; string stringPattern = @&lt;/?(?(?= + acceptable + @)notag|[a-zA-Z0-9]+)(?:\s[a-zA-Z0-9\-]+=?(?:([,']?).*?\1?)?)*\s*/?&gt;; h

    Crawler.zip

    一个简单的网络爬虫资源包,是之前在发现的,文件包好像还挺完整,本来应该免积分的,但是因为急需积分,所以设置为两积分,有兴趣的可以下载试试

    OpenGL Extension Header

    OpenGL 2013.08.23 更新的扩展头文件 包括 glext.h glcorearb.h glxext.h wglext.h

    HowToImplement SCP-ECG_Part I

    It is not anymore acceptable that, in the age of information technology, millions of Euros are wasted for unnecessarily repeated tests or that patients do not obtain appropriate care because relevant ...

    rack-accepts:[UNMAINTAINED] 机架中间件拒绝蹩脚的 http 接受标头

    机架中间件拒绝蹩脚的 http 接受标头当请求不支持的类型时返回“406 Not Acceptable”状态。导轨用法 config.middleware.use Rack::Accepts执照版权所有 (c) 2010 Andrew Nesbitt 特此授予任何人免费获得本软件副本...

    SIP - Understanding the Session Initiation Protocol, 2nd Ed - 1459

    5.4.7 406 Not Acceptable 115 5.4.8 407 Proxy Authentication Required 115 5.4.9 408 Request Timeout 116 5.4.10 409 Conflict 116 5.4.11 410 Gone 116 5.4.12 411 Length Required 116 5.4.13 413 Request ...

    Serial Port Server with sample code

    please note: comments at end of the line are not acceptable ;; for example: ;; Key = 20 ;; Wrong ;; ;; below line is correct ;; Key = 20 ;;------------------------------------------------------------...

    How to implement SCP-ECG, Part II

    It is not anymore acceptable that, in the age of information technology, millions of Euros are wasted for unnecessarily repeated tests or that patients do not obtain appropriate care because relevant ...

    sip RFC3261 中文版

    21.4.7 406 Not Acceptable 209 21.4.8 407 Proxy Authentication Required 209 21.4.9 408 Request Timeout 210 21.4.10 410 Gone 210 21.4.11 413请求实体过大。 210 21.4.12 414 Request-URI Too Long 210 21.4....

Global site tag (gtag.js) - Google Analytics