spring mvc not returning json content - error 406

后端 未结 14 1300
温柔的废话
温柔的废话 2020-11-30 05:10

I am using Spring MVC with JSON as specified in Ajax Simplification Spring 3.0 article.

After so many attempts and variations of my code depending on advice found on

14条回答
  •  一个人的身影
    2020-11-30 05:22

    See my answer to a similar problem here with Spring MVC interpreting the extension of the URI and changing the expected MIME type produced behind the scene, therefore producing a 406.

提交回复
热议问题