Spring 3.x JSON status 406 “characteristics not acceptable according to the request ”accept“ headers ()”

后端 未结 14 1470
太阳男子
太阳男子 2020-12-13 01:50

Upon trying to get my response in JSON using Spring 3.x, I get the 406 error \"The resource identified by this request is only capable

14条回答
  •  被撕碎了的回忆
    2020-12-13 02:30

    I had a similar problem, it got resolved when I added jackson-databind library.

    These are my dependencies:

    
        org.codehaus.jackson
        jackson-mapper-asl
        1.9.12
    
    
        com.fasterxml.jackson.core
        jackson-databind
        2.4.3
    
    

提交回复
热议问题