spring mvc not returning json content - error 406

后端 未结 14 1298
温柔的废话
温柔的废话 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:41

    I had this problem too, you have to add in your configuration xml

    and

    
            
                com.fasterxml.jackson.core
                jackson-databind
                ${jackson.databind-version}
            
    

    in your pom.xml

提交回复
热议问题