How can a @JsonView working with jersey

后端 未结 1 1500
醉酒成梦
醉酒成梦 2021-02-04 22:22

I want to return different fields with different views for one object. But it always return all the fields. I created 3 different views:

public class Views {
           


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 22:56

    ok , i fix this several days ago. I check the source code of jackson I used that time , there were nothing doing about the @json view. That version I remember is 1.8.* Now I change to a newer one . it works

    0 讨论(0)
提交回复
热议问题