Jackson annotations being ignored in Spring

后端 未结 5 2080
日久生厌
日久生厌 2020-12-08 22:13

I\'m trying to make a property in a domain class hidden but it keeps appearing in the outputted JSON. I\'m using Jackson 2.0 and Spring 3.1.1

Output of /users/1:

5条回答
  •  佛祖请我去吃肉
    2020-12-08 22:48

    Support for Jackson 2 has been added to Spring 3.1.2 (backported from Spring 3.2 - SPR-9507). Just upgrade your project from Spring 3.1.1 to Spring 3.1.2, and Jackson 2 works with the configuration you already have.

提交回复
热议问题