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

后端 未结 14 1462
太阳男子
太阳男子 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:25

    If you are using Spring 4 then you must only update your libraries:

        
            com.fasterxml.jackson.core
            jackson-core
            2.3.0
        
    
        
            com.fasterxml.jackson.core
            jackson-databind
            2.3.0
        
    

提交回复
热议问题