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

后端 未结 14 1455
太阳男子
太阳男子 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条回答
  •  Happy的楠姐
    2020-12-13 02:27

    Maybe you should update your jackson library. I use Spring v4.3.8 and I use it as follows:

    
      com.fasterxml.jackson.core
      jackson-core
      2.8.7
    
    
      com.fasterxml.jackson.core
      jackson-databind
      2.8.7
    
    

提交回复
热议问题