Spring @JsonIgnore not working

前端 未结 8 1531
终归单人心
终归单人心 2020-12-01 07:46

How can I get @JsonIgnore to work I have a class. And even if I put the annotation there it has no effect on the output. I am using Jackson.

public class Que         


        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 08:33

    I faced this issue in my project and finally I got the solution.

    Replace the dependency...

        
            org.codehaus.jackson
            jackson-jaxrs
            1.9.13
        
    

    Import : com.fasterxml.jackson.annotation.JsonIgnore;

    I hope, It will work.

提交回复
热议问题